feat(ai): 切换默认模型并新增流式对话接口- 将默认模型从 deepseek-chat 切换为 deepseek-reasoner

- 新增 /ai/generateStream 接口支持流式对话输出
- 新增 /v1/ai/generateStream 接口支持 reasoning 内容流式输出
- 引入 commons-lang3 依赖用于字符串处理- 添加 Flux 支持实现异步流式响应
- 完善 DeepSeekAssistantMessage 处理逻辑,区分推理内容与最终回答
This commit is contained in:
hanserwei
2025-10-21 14:04:49 +08:00
parent 5158a9bcb3
commit 62cf0ed548
4 changed files with 75 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ spring:
base-url: https://api.deepseek.com # DeepSeek 的请求 URL, 可不填,默认值为 api.deepseek.com
chat:
options:
model: deepseek-chat # 使用哪个模型
model: deepseek-reasoner # 使用哪个模型
temperature: 0.8 # 温度值
jasypt:
encryptor: