Skip to content
Discussion options

You must be logged in to vote

Hi @wangchoufei! I'm Dosu and I’m helping the ragflow team.

This is a known issue in RAGFlow. The Agent API often removes or loses tags from LLM output due to a combination of intentional output processing and bugs in the stream parser. Specifically, if the final chunk ends with , the closing tag may be dropped, so the reasoning content is lost in API responses but still appears in the UI preview, which handles these tags differently. There’s no built-in agent-level switch to control this; tag removal is typically done manually in code (for example, using regex in the Generate component) and is not user-configurable in the UI. If you want to preserve tags for third-party clients, you’ll …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wangchoufei
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants