Commit Graph

1 Commits

Author SHA1 Message Date
kiranjd
7b3d5739da fix(providers): preserve all reasoning_details types for OpenRouter models
OpenRouter models like Kimi K2.5 return reasoning_details with type
reasoning.text at message level. The pi-ai library only handled
reasoning.encrypted type. This patch stores all reasoning_details
and passes them back in subsequent requests.

Fixes multi-turn tool calls with Kimi K2.5 and similar models.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 21:43:41 +05:30