Skip to content

fix(core): load documented provider packages#36870

Open
opencode-agent[bot] wants to merge 1 commit into
provider-packagesfrom
provider-config-shape
Open

fix(core): load documented provider packages#36870
opencode-agent[bot] wants to merge 1 commit into
provider-packagesfrom
provider-config-shape

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • accept the documented provider/model package and settings fields
  • translate native package specifiers and aisdk: specifiers into the catalog API representation
  • promote settings.baseURL to the catalog URL so OpenAI-compatible routes are supported and never build undefined/chat/completions

This is stacked on #35212 because the reported native provider-package behavior only exists on that branch. It addresses the package/baseURL failure in #36834; the reasoning-parameter report is separate.

Verification

  • bun typecheck (packages/core)
  • bun test test/config (packages/core)
  • bun test test/session-runner-model.test.ts (packages/core)

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.

1 participant