Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
tzolov committed Apr 6, 2024
1 parent 1196ef2 commit fc8edac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.skyscreamer.jsonassert.JSONCompareMode;

import org.springframework.ai.autoconfigure.retry.SpringAiRetryAutoConfiguration;
import org.springframework.ai.model.ModelOptionsUtils;
import org.springframework.ai.openai.OpenAiChatClient;
import org.springframework.ai.openai.OpenAiEmbeddingClient;
import org.springframework.ai.openai.OpenAiImageClient;
Expand Down Expand Up @@ -377,7 +378,7 @@ public void chatOptionsTest() {
"spring.ai.openai.chat.options.topP=0.56",

// "spring.ai.openai.chat.options.toolChoice.functionName=toolChoiceFunctionName",
"spring.ai.openai.chat.options.toolChoice=" + ToolChoiceBuilder.FUNCTION("toolChoiceFunctionName"),
"spring.ai.openai.chat.options.toolChoice=" + ModelOptionsUtils.toJsonString(ToolChoiceBuilder.FUNCTION("toolChoiceFunctionName")),

"spring.ai.openai.chat.options.tools[0].function.name=myFunction1",
"spring.ai.openai.chat.options.tools[0].function.description=function description",
Expand Down

0 comments on commit fc8edac

Please sign in to comment.