Repository navigation
Docs: Updated Converse with chat assistant - #16117
Conversation
📝 WalkthroughWalkthroughStandardizes deprecated endpoint callout phrasing across ChangesHTTP API Reference Documentation Updates
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
docs/references/http_api_reference.md (1)
4719-4736:⚠️ Potential issue | 🟠 Major | ⚡ Quick winRename
questiontoqueryin the Standard mode table.This table conflicts with the rest of the section: the body schema and both examples use
query, notquestion. As written, readers will send the wrong field name.♻️ Suggested fix
-- `"question"`: (*Body Parameter*), `string`, *Required* - The question to start an AI-powered conversation. +- `"query"`: (*Body Parameter*), `string`, *Required* + The question to start an AI-powered conversation.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/references/http_api_reference.md` around lines 4719 - 4736, In the Request parameters section of the HTTP API reference documentation, the first body parameter is currently named "question" with the description "The question to start an AI-powered conversation." This conflicts with the body schema and example sections which use "query" instead. Rename the "question" parameter to "query" to maintain consistency throughout the documentation and ensure readers use the correct field name when making API requests.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/references/http_api_reference.md`:
- Around line 4150-4153: The prose description of the `legacy` parameter states
that start_to_think and end_to_think signals are stripped from the stream, but
the example payload that follows still shows <think>...</think> markers in the
answer field. Align the documentation by either updating the prose description
to clarify that the thinking markers are preserved in legacy mode, or update the
example to remove the <think>...</think> tags from the answer field so that both
the text explanation and the example show the same payload structure.
---
Outside diff comments:
In `@docs/references/http_api_reference.md`:
- Around line 4719-4736: In the Request parameters section of the HTTP API
reference documentation, the first body parameter is currently named "question"
with the description "The question to start an AI-powered conversation." This
conflicts with the body schema and example sections which use "query" instead.
Rename the "question" parameter to "query" to maintain consistency throughout
the documentation and ensure readers use the correct field name when making API
requests.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 64323323-1417-4938-8741-027b8bc07b70
📒 Files selected for processing (1)
docs/references/http_api_reference.md
| - `"legacy"`: (*Body Parameter*), `boolean` | ||
| Defaults to `false`. Wheter to enable backward compatibility with RAGFlow v0.23.0 for streaming responses. When set to `true`: | ||
| - Cumulative output: The `"answer"` field in each chunk returns the entire text generated so far, rather than just the new tokens (deltas). | ||
| - No reasoning markers: The `start_to_think` and `end_to_think` signals are stripped from the stream. |
There was a problem hiding this comment.
Clarify the legacy streaming semantics.
The prose says the v0.23.0-compatible stream strips start_to_think / end_to_think, but the example below still shows <think>...</think> in answer. Please make the text and example describe the same payload shape.
♻️ Suggested wording
- Defaults to `false`. Wheter to enable backward compatibility with RAGFlow v0.23.0 for streaming responses. When set to `true`:
- - Cumulative output: The `"answer"` field in each chunk returns the entire text generated so far, rather than just the new tokens (deltas).
- - No reasoning markers: The `start_to_think` and `end_to_think` signals are stripped from the stream.
+ Defaults to `false`. Whether to enable backward compatibility with RAGFlow v0.23.0 for streaming responses. When set to `true`:
+ - Cumulative output: The `"answer"` field in each chunk returns the entire text generated so far, rather than just the new tokens (deltas).
+ - Legacy reasoning text stays inside `answer` as literal `<think>...</think>` content.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| - `"legacy"`: (*Body Parameter*), `boolean` | |
| Defaults to `false`. Wheter to enable backward compatibility with RAGFlow v0.23.0 for streaming responses. When set to `true`: | |
| - Cumulative output: The `"answer"` field in each chunk returns the entire text generated so far, rather than just the new tokens (deltas). | |
| - No reasoning markers: The `start_to_think` and `end_to_think` signals are stripped from the stream. | |
| - `"legacy"`: (*Body Parameter*), `boolean` | |
| Defaults to `false`. Whether to enable backward compatibility with RAGFlow v0.23.0 for streaming responses. When set to `true`: | |
| - Cumulative output: The `"answer"` field in each chunk returns the entire text generated so far, rather than just the new tokens (deltas). | |
| - Legacy reasoning text stays inside `answer` as literal `<think>...</think>` content. |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/references/http_api_reference.md` around lines 4150 - 4153, The prose
description of the `legacy` parameter states that start_to_think and
end_to_think signals are stripped from the stream, but the example payload that
follows still shows <think>...</think> markers in the answer field. Align the
documentation by either updating the prose description to clarify that the
thinking markers are preserved in legacy mode, or update the example to remove
the <think>...</think> tags from the answer field so that both the text
explanation and the example show the same payload structure.
What problem does this PR solve?
Miscellaneous editorial updates to the API reference.
Type of change