Skip to content

Commit 9910ccc

Browse files
committed
fix docs to remove use of 'f' for temperature chat option
1 parent 8bddd5f commit 9910ccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/minimax-chat.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ ChatResponse response = chatModel.call(
122122
"Generate the names of 5 famous pirates.",
123123
MiniMaxChatOptions.builder()
124124
.withModel(MiniMaxApi.ChatModel.ABAB_6_5_S_Chat.getValue())
125-
.withTemperature(0.5f)
125+
.withTemperature(0.5)
126126
.build()
127127
));
128128
----
@@ -205,7 +205,7 @@ var miniMaxApi = new MiniMaxApi(System.getenv("MINIMAX_API_KEY"));
205205
206206
var chatModel = new MiniMaxChatModel(miniMaxApi, MiniMaxChatOptions.builder()
207207
.withModel(MiniMaxApi.ChatModel.ABAB_6_5_S_Chat.getValue())
208-
.withTemperature(0.4f)
208+
.withTemperature(0.4)
209209
.withMaxTokens(200)
210210
.build());
211211

0 commit comments

Comments
 (0)