Skip to content

Conversation

shikaiwei1
Copy link
Contributor

issue #5292
当最后一个流中包含[xxxx]格式时,会输出2次。

  • 第一次在parseCite方法中if (isStreamEnd) {分支内输出
  • 第二次在调用getResponseData时会输出buffer中的内容,导致重复。

issue labring#5292
当最后一个流中包含[xxxx]格式时,会输出2次。第一次在parseCite方法中if (isStreamEnd) {分支内输出,第二次在调用getResponseData时会输出buffer中的内容,导致重复。
Copy link
Contributor

gru-agent bot commented Sep 18, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail d1c3508 🚫 Skipped No files need to be tested {"packages/service/core/ai/utils.ts":"File path does not match include patterns."}

History Assignment

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

Copy link

github-actions bot commented Sep 18, 2025

Preview sandbox Image:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-pr:fatsgpt_sandbox_866ab50ebb736a1a4f2ba9cd6ca9d3c4adf2f258

Copy link

github-actions bot commented Sep 18, 2025

Preview mcp_server Image:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-pr:fatsgpt_mcp_server_866ab50ebb736a1a4f2ba9cd6ca9d3c4adf2f258

Copy link

github-actions bot commented Sep 18, 2025

Preview fastgpt Image:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-pr:fatsgpt_866ab50ebb736a1a4f2ba9cd6ca9d3c4adf2f258

newfish-cmyk
newfish-cmyk previously approved these changes Sep 18, 2025
FinleyGe
FinleyGe previously approved these changes Sep 19, 2025
@c121914yu
Copy link
Collaborator

c121914yu commented Sep 19, 2025

getResponseData 时候并不会触发流输出,为什么会有问题呢?每太理解。
我试图复现这个问题,但是没有任何结果,不管是什么输出,请问是否有对应流输出的示例可以提供。

@c121914yu c121914yu dismissed stale reviews from FinleyGe and newfish-cmyk via 866ab50 September 19, 2025 02:57
@c121914yu
Copy link
Collaborator

复现出来了,需要满足两个条件:

  1. 不保留引用标签
  2. 最后 32 个字符中包含 [ 符号

我还增加了个测试案例。

@c121914yu c121914yu merged commit 91269c9 into labring:main Sep 19, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants