feat(ai): 集成阿里云DashScope AI模型支持

- 新增DashScope AI配置项,支持qwen-plus模型
- 添加AIResponse数据模型用于流式响应
- 实现普通对话和流式对话两个接口
- 引入spring-ai-alibaba-starter-dashscope依赖
- 更新OpenAIController移除无用导入
- 在pom.xml中添加spring-ai-alibaba-bom管理依赖版本
This commit is contained in:
2025-10-23 14:27:38 +08:00
parent 0782148820
commit 5bfa65bc0b
5 changed files with 92 additions and 2 deletions

View File

@@ -30,6 +30,12 @@ spring:
options:
model: gpt-4o # 模型名称
temperature: 0.7 # 温度值
dashscope:
api-key: ENC(cMgcKZkFllyE88DIbGwLKot9Vg02co+gsmY8L8o4/o3UjhcmqO4lJzFU35Sx0n+qFG8pDL0wBjoWrT8X6BuRw9vNlQhY1LgRWHaF9S1zzyM=)
chat:
options:
model: qwen-plus
temperature: 0.7
jasypt:
encryptor: