Skip to content

fix: prevent infinite retry loop for Kimi K2.5 reasoning field errors#11596

Closed
jogi47 wants to merge 1 commit intoanomalyco:devfrom
jogi47:fix/kimi-k2.5-retry-loop
Closed

fix: prevent infinite retry loop for Kimi K2.5 reasoning field errors#11596
jogi47 wants to merge 1 commit intoanomalyco:devfrom
jogi47:fix/kimi-k2.5-retry-loop

Conversation

@jogi47
Copy link
Copy Markdown
Contributor

@jogi47 jogi47 commented Feb 1, 2026

Summary

  • Detect validation errors about unsupported reasoning fields (reasoning_content, reasoning_details)
  • Mark these 400 errors as non-retryable to prevent infinite retry loops
  • Affects Kimi K2.5 models when routed through Together/Fireworks via OpenRouter

Test Plan

  • Added 4 test cases in retry.test.ts
  • Verified reasoning field errors → non-retryable
  • Verified non-reasoning 400 errors → still retryable
  • Verified 429 rate limit errors → still retryable

Fixes #11541

🤖 Generated with Claude Code

Fixes anomalyco#11541

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 1, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 3, 2026

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Apr 3, 2026
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.

Kimi K2.5 w/ openrouter

1 participant