We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82036e7 commit 59efcb7Copy full SHA for 59efcb7
src/lib/server/textGeneration/mcp/runMcpFlow.ts
@@ -493,7 +493,7 @@ export async function* runMcpFlow({
493
// Merge reasoning + content into a single combined token stream, mirroring
494
// the OpenAI adapter so the UI can auto-detect <think> blocks.
495
let combined = "";
496
- if (deltaReasoning && deltaReasoning.length > 0) {
+ if (deltaReasoning.trim().length > 0) {
497
if (!thinkOpen) {
498
combined += "<think>" + deltaReasoning;
499
thinkOpen = true;
0 commit comments