Skip to content

Commit

Permalink
fix docs to remove use of 'f' for temperature chat option
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Pollack committed Sep 18, 2024
1 parent 8bddd5f commit 9910ccc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ ChatResponse response = chatModel.call(
"Generate the names of 5 famous pirates.",
MiniMaxChatOptions.builder()
.withModel(MiniMaxApi.ChatModel.ABAB_6_5_S_Chat.getValue())
.withTemperature(0.5f)
.withTemperature(0.5)
.build()
));
----
Expand Down Expand Up @@ -205,7 +205,7 @@ var miniMaxApi = new MiniMaxApi(System.getenv("MINIMAX_API_KEY"));
var chatModel = new MiniMaxChatModel(miniMaxApi, MiniMaxChatOptions.builder()
.withModel(MiniMaxApi.ChatModel.ABAB_6_5_S_Chat.getValue())
.withTemperature(0.4f)
.withTemperature(0.4)
.withMaxTokens(200)
.build());
Expand Down

0 comments on commit 9910ccc

Please sign in to comment.