Skip to content

fix(provider): preserve OpenRouter small model effort#35478

Merged
rekram1-node merged 1 commit into
devfrom
openrouter-small-fix
Jul 5, 2026
Merged

fix(provider): preserve OpenRouter small model effort#35478
rekram1-node merged 1 commit into
devfrom
openrouter-small-fix

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve the weakest configured OpenRouter reasoning variant for small-model calls
  • stop forcing reasoning.effort: none on models such as Gemini 3.5 Flash that require reasoning
  • update the regression test to cover the affected model

Closes #35366

Testing

  • bun test test/provider/transform.test.ts (290 passed)
  • bun typecheck (timed out after 10 minutes without diagnostics)

@rekram1-node rekram1-node marked this pull request as ready for review July 5, 2026 23:18
@rekram1-node rekram1-node merged commit 68f225a into dev Jul 5, 2026
10 checks passed
@rekram1-node rekram1-node deleted the openrouter-small-fix branch July 5, 2026 23:50
drewr pushed a commit to drewr/opencode that referenced this pull request Jul 7, 2026
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
shaheislam pushed a commit to shaheislam/opencode-vim that referenced this pull request Jul 7, 2026
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
avion23 pushed a commit to avion23/opencode that referenced this pull request Jul 9, 2026
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
anduimagui pushed a commit to anduimagui/opencode that referenced this pull request Jul 9, 2026
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
ljluestc pushed a commit to ljluestc/opencode that referenced this pull request Jul 10, 2026
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v1.17.13: Session title generation fails on OpenRouter with "Reasoning is mandatory for this endpoint"

1 participant