Skip to content

Commit

Permalink
example code update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lambdua committed May 24, 2024
1 parent 8ba13ac commit 0c0c82f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/src/main/java/example/ChatExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void functionChat() {
.model("gpt-3.5-turbo")
.messages(messages)
.functions(Collections.singletonList(ToolUtil.weatherFunction()))
.functionCall("auto")
.functionCall(ChatCompletionRequestFunctionCall.AUTO)
.n(1)
.maxTokens(100)
.build();
Expand Down
2 changes: 1 addition & 1 deletion example/src/main/java/example/DynamicFunctionExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static void main(String... args) {
.model("gpt-3.5-turbo-0613")
.messages(messages)
.functions(Collections.singletonList(weatherFunction))
.functionCall("auto")
.functionCall(ChatCompletionRequestFunctionCall.AUTO)
.n(1)
.maxTokens(100)
.logitBias(new HashMap<>())
Expand Down
2 changes: 1 addition & 1 deletion example/src/main/java/example/FunctionsExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void main(String... args) {
.model("gpt-3.5-turbo-0613")
.messages(messages)
.functions(functionExecutor.getFunctionDefinitions())
.functionCall("auto")
.functionCall(ChatCompletionRequestFunctionCall.AUTO)
.n(1)
.maxTokens(100)
.logitBias(new HashMap<>())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static void main(String... args) {
.model("gpt-3.5-turbo")
.messages(messages)
.functions(functionExecutor.getFunctionDefinitions())
.functionCall("auto")
.functionCall(ChatCompletionRequestFunctionCall.AUTO)
.n(1)
.maxTokens(256)
.logitBias(new HashMap<>())
Expand Down

0 comments on commit 0c0c82f

Please sign in to comment.