diff --git a/pom.xml b/pom.xml
index d409bdc..60a9c45 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
ca.int13
azureai-api-client
- 0.1.0
+ 0.1.2
jar
UTF-8
diff --git a/src/main/java/ca/int13/azureai/api/classes/AzureAIFunctionParameters.java b/src/main/java/ca/int13/azureai/api/classes/AzureAIFunctionParameters.java
index 86fecbd..5887027 100644
--- a/src/main/java/ca/int13/azureai/api/classes/AzureAIFunctionParameters.java
+++ b/src/main/java/ca/int13/azureai/api/classes/AzureAIFunctionParameters.java
@@ -1,13 +1,29 @@
/*
- * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
- * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+Copyright (c) 2023 Int13 Consulting Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package ca.int13.azureai.api.classes;
import java.util.ArrayList;
import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
/**
*
diff --git a/src/main/java/ca/int13/azureai/api/client/AzureAIClient.java b/src/main/java/ca/int13/azureai/api/client/AzureAIClient.java
index 16eb2f7..e83de7e 100644
--- a/src/main/java/ca/int13/azureai/api/client/AzureAIClient.java
+++ b/src/main/java/ca/int13/azureai/api/client/AzureAIClient.java
@@ -122,8 +122,9 @@ public AzureAIChatResponse sendChatRequest(AzureAIChatRequest chatRequest, Strin
Future f = client.executeRequest(buildRequest("POST", "chat/completions?api-version=" + apiVersion, gson.toJson(chatRequest), deploymentName));
Response r = f.get();
if (r.getStatusCode() != 200) {
-
- throw new Exception("Could not create chat request - server resposne was " + r.getStatusCode() + " to url: " + url + "chat/completions?api-version=2023-03-15-preview");
+ System.out.println("Error running sendChatRequest. Input was: " + gson.toJson(chatRequest) + " to deploymentName " + deploymentName);
+ System.out.println(r.getResponseBody());
+ throw new Exception("Could not create chat request - server resposne was " + r.getStatusCode() + " to url: " + r.getUri().toUrl());
} else {
// System.out.println(gson.toJson(r.getResponseBody()));
return gson.fromJson(r.getResponseBody(), AzureAIChatResponse.class);