Skip to content

Commit 417b7fc

Browse files
committed
feat: update chatToolCall index to Integer Object
1 parent d4aa70c commit 417b7fc

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>top.bella</groupId>
88
<artifactId>openai-java</artifactId>
9-
<version>0.23.80</version>
9+
<version>0.23.81</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212
<artifactId>openai-api</artifactId>

api/src/main/java/com/theokanning/openai/completion/chat/ChatToolCall.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class ChatToolCall {
1414
* @see https://community.openai.com/t/gpt-4-turbo-model-function-call-doesnt-work/712218
1515
*/
1616
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
17-
int index;
17+
Integer index;
1818

1919
/**
2020
* The ID of the tool call
@@ -32,7 +32,7 @@ public class ChatToolCall {
3232
*/
3333
ChatFunctionCall function;
3434

35-
public ChatToolCall(int index, String id, String type) {
35+
public ChatToolCall(Integer index, String id, String type) {
3636
this.index = index;
3737
this.id = id;
3838
this.type = type;

client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>top.bella</groupId>
88
<artifactId>openai-java</artifactId>
9-
<version>0.23.80</version>
9+
<version>0.23.81</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>top.bella</groupId>
77
<artifactId>openai-java</artifactId>
8-
<version>0.23.80</version>
8+
<version>0.23.81</version>
99
<packaging>pom</packaging>
1010
<description>openai java 版本</description>
1111
<name>openai-java</name>

service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>top.bella</groupId>
88
<artifactId>openai-java</artifactId>
9-
<version>0.23.80</version>
9+
<version>0.23.81</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212

0 commit comments

Comments
 (0)