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

12
pom.xml
View File

@@ -50,6 +50,11 @@
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-model-openai</artifactId>
</dependency>
<!-- 阿里云AI -->
<dependency>
<groupId>com.alibaba.cloud.ai</groupId>
<artifactId>spring-ai-alibaba-starter-dashscope</artifactId>
</dependency>
@@ -79,6 +84,13 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.alibaba.cloud.ai</groupId>
<artifactId>spring-ai-alibaba-bom</artifactId>
<version>1.0.0.4</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>