File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
src/test/kotlin/com/javaaidev/openai Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 6
6
Spring AI ` ChatModel ` and ` EmbeddingModel ` implementations for OpenAI using
7
7
the [ official SDK] ( https://github.com/openai/openai-java ) .
8
8
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.
10
11
11
12
Add Maven dependency.
12
13
@@ -41,7 +42,7 @@ See the code below:
41
42
val client = OpenAIOkHttpClient .fromEnv()
42
43
val chatModel = OpenAIChatModel (client)
43
44
val chatOptions = OpenAiChatOptions .builder()
44
- .model(" gpt-3.5-turbo " )
45
+ .model(" gpt-4o-mini " )
45
46
.build()
46
47
val chatClient =
47
48
ChatClient .builder(chatModel).defaultOptions(chatOptions).build()
Original file line number Diff line number Diff line change 6
6
7
7
<groupId >com.javaaidev</groupId >
8
8
<artifactId >springai-openai-client</artifactId >
9
- <version >0.4.1 </version >
9
+ <version >0.4.2 </version >
10
10
11
11
<name >OpenAI ChatModel</name >
12
12
<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 {
19
19
val client = OpenAIOkHttpClient .fromEnv()
20
20
val chatModel = OpenAIChatModel (client, CustomFunctionCallbackResolver (objectMapper))
21
21
val chatOptions = OpenAIChatOptions .builder()
22
- .model(" gpt-3.5-turbo " )
22
+ .model(" gpt-4o-mini " )
23
23
.build()
24
24
chatClient =
25
25
ChatClient .builder(chatModel).defaultOptions(chatOptions).build()
You can’t perform that action at this time.
0 commit comments