Preserve reasoning #16

Open
opened 2026-04-30 19:06:16 +00:00 by scott · 0 comments
Owner

See, eg: https://openrouter.ai/docs/guides/best-practices/reasoning-tokens#preserving-reasoning

Based on my read this is generally the correct approach, especially in tool using scenarios. Also some models, like notably DeepSeek v4, will error if the reasoning blocks aren't passed back (this doesn't appear to happen consistently across OpenRouter providers, but it does happen in the official API).

See, eg: https://openrouter.ai/docs/guides/best-practices/reasoning-tokens#preserving-reasoning Based on my read this is generally the correct approach, especially in tool using scenarios. Also some models, like notably DeepSeek v4, will error if the reasoning blocks aren't passed back (this doesn't appear to happen consistently across OpenRouter providers, but it does happen in the official API).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_shrimp#16
No description provided.