File tree Expand file tree Collapse file tree
src/test/kotlin/com/javaaidev/openai Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66Spring AI ` ChatModel ` and ` EmbeddingModel ` implementations for OpenAI using
77the [ official SDK] ( https://github.com/openai/openai-java ) .
88
9- The motivation of this ` ChatModel ` and ` EmbeddingModel ` implementations is to use Spring AI with Spring 5.
9+ The motivation of this ` ChatModel ` and ` EmbeddingModel ` implementations is to use Spring AI with
10+ Spring 5.
1011
1112Add Maven dependency.
1213
@@ -41,7 +42,7 @@ See the code below:
4142val client = OpenAIOkHttpClient .fromEnv()
4243val chatModel = OpenAIChatModel (client)
4344val chatOptions = OpenAiChatOptions .builder()
44- .model(" gpt-3.5-turbo " )
45+ .model(" gpt-4o-mini " )
4546 .build()
4647val chatClient =
4748 ChatClient .builder(chatModel).defaultOptions(chatOptions).build()
Original file line number Diff line number Diff line change 66
77 <groupId >com.javaaidev</groupId >
88 <artifactId >springai-openai-client</artifactId >
9- <version >0.4.1 </version >
9+ <version >0.4.2 </version >
1010
1111 <name >OpenAI ChatModel</name >
1212 <description >Spring AI ChatModel for OpenAI using official Java SDK</description >
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class OpenAIChatModelTest {
1919 val client = OpenAIOkHttpClient .fromEnv()
2020 val chatModel = OpenAIChatModel (client, CustomFunctionCallbackResolver (objectMapper))
2121 val chatOptions = OpenAIChatOptions .builder()
22- .model(" gpt-3.5-turbo " )
22+ .model(" gpt-4o-mini " )
2323 .build()
2424 chatClient =
2525 ChatClient .builder(chatModel).defaultOptions(chatOptions).build()
You can’t perform that action at this time.
0 commit comments