Update mistralai-chat.adoc

withMaxToken method wrong name
This commit is contained in:
Andrea Rubino
2024-06-04 15:35:34 +02:00
committed by Christian Tzolov
parent 1b0903e29f
commit 8c33fff161

View File

@@ -215,7 +215,7 @@ var mistralAiApi = new MistralAiApi(System.getenv("MISTRAL_AI_API_KEY"));
var chatModel = new MistralAiChatModel(mistralAiApi, MistralAiChatOptions.builder()
.withModel(MistralAiApi.ChatModel.LARGE.getValue())
.withTemperature(0.4f)
.withMaxToken(200)
.withMaxTokens(200)
.build());
ChatResponse response = chatModel.call(