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:
12
pom.xml
12
pom.xml
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user