Skip to content

Commit 9aa0c9a

Browse files
YunKuiLuspring-builds
authored andcommitted
docs:Revise the documents of deepseek and minimax-chat (#3408)
Fixes: #3408 Signed-off-by: YunKui Lu <[email protected]> (cherry picked from commit ea995df)
1 parent 8fe3cad commit 9aa0c9a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

models/spring-ai-deepseek/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[DeepSeek Chat Documentation](https://docs.spring.io/spring-ai/reference/1.0-SNAPSHOT/api/chat/deepseek-chat.html)
1+
[DeepSeek Chat Documentation](https://docs.spring.io/spring-ai/reference/api/chat/deepseek-chat.html)

models/spring-ai-deepseek/src/main/java/org/springframework/ai/deepseek/DeepSeekChatOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class DeepSeekChatOptions implements ToolCallingChatOptions {
4949

5050
// @formatter:off
5151
/**
52-
* ID of the model to use. You can use either usedeepseek-coder or deepseek-chat.
52+
* ID of the model to use. You can use either use deepseek-reasoner or deepseek-chat.
5353
*/
5454
private @JsonProperty("model") String model;
5555
/**

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ The prefix `spring.ai.deepseek.chat` is the property prefix that lets you config
118118
| spring.ai.deepseek.chat.base-url | Optionally overrides the spring.ai.deepseek.base-url to provide a chat-specific URL | https://api.deepseek.com/
119119
| spring.ai.deepseek.chat.api-key | Optionally overrides the spring.ai.deepseek.api-key to provide a chat-specific API key | -
120120
| spring.ai.deepseek.chat.completions-path | The path to the chat completions endpoint | /chat/completions
121-
| spring.ai.deepseek.chat.beta-prefix-path | The prefix path to the beta feature endpoint | /beta/chat/completions
122-
| spring.ai.deepseek.chat.options.model | ID of the model to use. You can use either deepseek-coder or deepseek-chat. | deepseek-chat
121+
| spring.ai.deepseek.chat.beta-prefix-path | The prefix path to the beta feature endpoint | /beta
122+
| spring.ai.deepseek.chat.options.model | ID of the model to use. You can use either deepseek-reasoner or deepseek-chat. | deepseek-chat
123123
| spring.ai.deepseek.chat.options.frequencyPenalty | Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. | 0.0f
124124
| spring.ai.deepseek.chat.options.maxTokens | The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length. | -
125125
| spring.ai.deepseek.chat.options.presencePenalty | Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. | 0.0f
@@ -348,11 +348,11 @@ ChatCompletionMessage chatCompletionMessage =
348348
349349
// Sync request
350350
ResponseEntity<ChatCompletion> response = deepSeekApi.chatCompletionEntity(
351-
new ChatCompletionRequest(List.of(chatCompletionMessage), DeepSeekApi.ChatModel.DEEPSEEK_CHAT.getValue(), 0.7f, false));
351+
new ChatCompletionRequest(List.of(chatCompletionMessage), DeepSeekApi.ChatModel.DEEPSEEK_CHAT.getValue(), 0.7, false));
352352
353353
// Streaming request
354354
Flux<ChatCompletionChunk> streamResponse = deepSeekApi.chatCompletionStream(
355-
new ChatCompletionRequest(List.of(chatCompletionMessage), DeepSeekApi.ChatModel.DEEPSEEK_CHAT.getValue(), 0.7f, true));
355+
new ChatCompletionRequest(List.of(chatCompletionMessage), DeepSeekApi.ChatModel.DEEPSEEK_CHAT.getValue(), 0.7, true));
356356
----
357357

358358
Follow the https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-deepseek/src/main/java/org/springframework/ai/deepseek/api/DeepSeekApi.java[DeepSeekApi.java]'s JavaDoc for further information.

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
@@ -282,11 +282,11 @@ ChatCompletionMessage chatCompletionMessage =
282282
283283
// Sync request
284284
ResponseEntity<ChatCompletion> response = this.miniMaxApi.chatCompletionEntity(
285-
new ChatCompletionRequest(List.of(this.chatCompletionMessage), MiniMaxApi.ChatModel.ABAB_6_5_S_Chat.getValue(), 0.7f, false));
285+
new ChatCompletionRequest(List.of(this.chatCompletionMessage), MiniMaxApi.ChatModel.ABAB_6_5_S_Chat.getValue(), 0.7, false));
286286
287287
// Streaming request
288288
Flux<ChatCompletionChunk> streamResponse = this.miniMaxApi.chatCompletionStream(
289-
new ChatCompletionRequest(List.of(this.chatCompletionMessage), MiniMaxApi.ChatModel.ABAB_6_5_S_Chat.getValue(), 0.7f, true));
289+
new ChatCompletionRequest(List.of(this.chatCompletionMessage), MiniMaxApi.ChatModel.ABAB_6_5_S_Chat.getValue(), 0.7, true));
290290
----
291291

292292
Follow the https://github.com/spring-projects/spring-ai/blob/main/models/spring-ai-minimax/src/main/java/org/springframework/ai/minimax/api/MiniMaxApi.java[MiniMaxApi.java]'s JavaDoc for further information.

0 commit comments

Comments
 (0)