Commit 9a2b8cc23276ac612536ff5706a92474de5a379a
1 parent
431e9156
【优化】AI:通义千问流式返回改为增量
Showing
1 changed file
with
1 additions
and
0 deletions
yudao-module-ai/yudao-spring-boot-starter-ai/src/main/java/com/alibaba/cloud/ai/tongyi/chat/TongYiChatModel.java
| @@ -236,6 +236,7 @@ public class TongYiChatModel extends | @@ -236,6 +236,7 @@ public class TongYiChatModel extends | ||
| 236 | .model(Generation.Models.QWEN_TURBO) | 236 | .model(Generation.Models.QWEN_TURBO) |
| 237 | // {@link GenerationOutput} | 237 | // {@link GenerationOutput} |
| 238 | .resultFormat(ConversationParam.ResultFormat.MESSAGE) | 238 | .resultFormat(ConversationParam.ResultFormat.MESSAGE) |
| 239 | + .incrementalOutput(true) | ||
| 239 | 240 | ||
| 240 | .build(); | 241 | .build(); |
| 241 | 242 |