feat(dashscope): 实现流式聊天响应

- 升级 spring-ai-alibaba-bom 版本至1.0.0.4- 修改 /chat 接口支持流式返回
- 使用 Flux<String> 替代 String 返回类型
- 设置 produces 为 TEXT_EVENT_STREAM_VALUE 支持 SSE- 调用 stream() 方法替代 call() 实现流式输出
This commit is contained in:
hanserwei
2025-10-22 15:30:05 +08:00
parent 4207c85202
commit 2861f7b613
2 changed files with 6 additions and 4 deletions

View File

@@ -71,7 +71,7 @@
<dependency>
<groupId>com.alibaba.cloud.ai</groupId>
<artifactId>spring-ai-alibaba-bom</artifactId>
<version>1.0.0.2</version>
<version>1.0.0.4</version>
<type>pom</type>
<scope>import</scope>
</dependency>