Skip to content

fix: convert thinking blocks sent as text to reasoning parts#258

Open
Ashwinhegde19 wants to merge 1 commit intoKilo-Org:devfrom
Ashwinhegde19:fix/thinking-blocks-reasoning
Open

fix: convert thinking blocks sent as text to reasoning parts#258
Ashwinhegde19 wants to merge 1 commit intoKilo-Org:devfrom
Ashwinhegde19:fix/thinking-blocks-reasoning

Conversation

@Ashwinhegde19
Copy link

Summary

  • Detects thinking blocks that OpenRouter/Kilo Gateway sends as text-delta events instead of reasoning-* events
  • Converts text starting with Thinking: or _Thinking:_ to proper reasoning parts
  • Ensures thinking content is properly hidden after response completion

Fixes #236

OpenRouter/Kilo Gateway sometimes sends thinking content as text-delta
events instead of reasoning-* events. This detects text starting with
'Thinking:' and converts it to reasoning parts so they get properly
hidden after response completion.

Fixes Kilo-Org#236
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Thinking blocks remain visible after response completes when using Kilo Gateway provider

1 participant