File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Add Maven dependency.
1717<dependency >
1818 <groupId >com.javaaidev</groupId >
1919 <artifactId >springai-openai-client</artifactId >
20- <version >0.5.1 </version >
20+ <version >0.6.0 </version >
2121</dependency >
2222```
2323
@@ -41,11 +41,11 @@ See the code below:
4141
4242``` kotlin
4343val client = OpenAIOkHttpClient .fromEnv()
44- val chatModel = OpenAIChatModel (client)
44+ val chatModel = OpenAIChatModel (client, DefaultToolCallingManager .builder().toolCallbackResolver( CustomToolCallbackResolver ()).build() )
4545val chatOptions = OpenAiChatOptions .builder()
4646 .model(" gpt-4o-mini" )
4747 .build()
48- val chatClient =
48+ chatClient =
4949 ChatClient .builder(chatModel).defaultOptions(chatOptions).build()
5050val response = chatClient.prompt().user(" tell me a joke" )
5151 .call().content()
You can’t perform that action at this time.
0 commit comments