alibaba / spring-ai-alibaba

An Application Framework for Java Developers
https://sca.aliyun.com/ai
Apache License 2.0
376 stars 87 forks source link

The content returned by the stream() method contains a significant amount of repetition #31

Closed HeWeiGitHub closed 3 weeks ago

HeWeiGitHub commented 1 month ago

The content returned by the stream() method contains a significant amount of repetition。 使用chatClient.prompt(prompt).stream().content();返回时存在大量重复内容。 代码如下: image image image 返回结果如下: image

软件版本: Windows11、Java21 、 Version 1.0.0-M2

kevinlin09 commented 3 weeks ago

@HeWeiGitHub 麻烦再测试下。在如下commit中已修复:https://github.com/alibaba/spring-ai-alibaba/commit/1fa218214f07baaeacb60c20a76e49437f066b66

kevinlin09 commented 3 weeks ago

经过自测和其他开发者验证,流式增量输出问题已修复。可以下载最新源码,或等后续Release。