File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Add Maven dependency.
17
17
<dependency >
18
18
<groupId >com.javaaidev</groupId >
19
19
<artifactId >springai-openai-client</artifactId >
20
- <version >0.5.1 </version >
20
+ <version >0.6.0 </version >
21
21
</dependency >
22
22
```
23
23
@@ -41,11 +41,11 @@ See the code below:
41
41
42
42
``` kotlin
43
43
val client = OpenAIOkHttpClient .fromEnv()
44
- val chatModel = OpenAIChatModel (client)
44
+ val chatModel = OpenAIChatModel (client, DefaultToolCallingManager .builder().toolCallbackResolver( CustomToolCallbackResolver ()).build() )
45
45
val chatOptions = OpenAiChatOptions .builder()
46
46
.model(" gpt-4o-mini" )
47
47
.build()
48
- val chatClient =
48
+ chatClient =
49
49
ChatClient .builder(chatModel).defaultOptions(chatOptions).build()
50
50
val response = chatClient.prompt().user(" tell me a joke" )
51
51
.call().content()
You can’t perform that action at this time.
0 commit comments