Skip to content

fix(provider): honor reasoning option semantics#37519

Merged
rekram1-node merged 2 commits into
devfrom
fix-kimi-efforts
Jul 17, 2026
Merged

fix(provider): honor reasoning option semantics#37519
rekram1-node merged 2 commits into
devfrom
fix-kimi-efforts

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • treat declared models.dev effort options as authoritative instead of falling back to heuristic variants when conversion yields no settings
  • map Anthropic-compatible effort options to native output_config.effort without inventing token budgets
  • preserve existing toggle and budget fallback behavior for MiniMax, Kimi, Claude, and other providers

Fixes #37418

Testing

  • bun test test/provider/transform.test.ts test/provider/provider.test.ts
  • bun typecheck
  • git diff --check

@rekram1-node
rekram1-node merged commit 49d2dd8 into dev Jul 17, 2026
11 checks passed
@rekram1-node
rekram1-node deleted the fix-kimi-efforts branch July 17, 2026 19:23
avion23 pushed a commit to avion23/opencode that referenced this pull request Jul 17, 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 K3 reasoning variants incorrectly use budget tokens instead of effort

1 participant