Skip to content

refactor(ai): simplify provider options - #39924

Merged
rekram1-node merged 1 commit into
v2from
openrouter-options
Jul 31, 2026
Merged

refactor(ai): simplify provider options#39924
rekram1-node merged 1 commit into
v2from
openrouter-options

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • validate known OpenRouter body options before forwarding them while preserving unknown extension fields
  • use each route’s existing provider metadata key when namespacing prompt-cache options
  • cover invalid known option values with a focused regression test

Checks

  • bun test test/provider/openrouter.test.ts (packages/ai)
  • bun typecheck (packages/ai)
  • bun typecheck (packages/core)
  • bun test test/session-model-request.test.ts test/session-generate.test.ts (packages/core)

Requested by: @rekram1-node (Aiden Cline via Slack)

@rekram1-node
rekram1-node merged commit b69e51d into v2Jul 31, 2026
7 of 9 checks passed
@rekram1-node
rekram1-node deleted the openrouter-options branch July 31, 2026 18:27
github-actionsBot pushed a commit to ReStranger/opencode that referenced this pull request Jul 31, 2026
* upstream/v2:
fix(tui): render plugin slots and routes with component semantics (anomalyco#39917)
refactor(ai): simplify provider options (anomalyco#39924)
refactor(core): rename attachments config to media (anomalyco#39927)
feat(tui): expand pasted text (anomalyco#39920)
feat(ai): expand OpenRouter native support (anomalyco#39907)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@rekram1-node