Commit graph

16 commits

Author SHA1 Message Date
Kit Langton
f019bb3abf fix(core): tighten ChatGPT codex model eligibility
Replace the codex-substring heuristic with the empirically verified
allow/disallow lists plus the >5.4 version rule; the ChatGPT backend
rejects models like gpt-5.3-codex that the substring rule admitted.
2026-07-03 14:51:00 -04:00
Kit Langton
38398fd450 feat(llm): provider packages own model request construction
Provider packages in @opencode-ai/llm/providers/* now implement a uniform
ProviderPackage contract: model(modelID, settings) => Model. SessionRunnerModel
becomes provider-agnostic: it resolves a package specifier, folds catalog
settings, credentials, and transport overlays into one Settings object, and
delegates request construction to the package.

- llm: add ProviderPackage (Settings, Definition, define), flat model(id,
  config) constructors on the openai-responses, anthropic-messages, and
  openai-compatible-chat protocols, contract-shaped model exports on the
  openai, anthropic, and openai-compatible providers, and a new
  providers/openai/codex entry point that targets the ChatGPT codex backend
  and sets the chatgpt-account-id header from settings.accountID.
- schema: Provider.Native gains optional package.
- core: SessionRunnerModel loads packages through a static built-in map
  (dynamic import for foreign specifiers) and applies one settings fold;
  the ChatGPT conditional is deleted from the runner. The OpenAI plugin's
  catalog transform now assigns the codex package to eligible models when a
  ChatGPT connection is active, alongside the existing eligibility and cost
  rewrites.
- llm schema: hoist ToolResultValue union out of its Object.assign self
  reference; the previous shape only typechecked under lucky check ordering
  and broke under core's typecheck with the new import graph.

Closes #34765
2026-07-03 14:01:17 -04:00
Kit Langton
516cfe4e09
refactor(schema): extract shared public schemas (#33571) 2026-06-23 22:31:06 -04:00
Dax
909a1a6d78
feat(plugin): add namespaced hook API (#33416) 2026-06-22 19:06:57 -04:00
Dax
2bb4311042
refactor(core): simplify integration test fixtures (#33292) 2026-06-22 04:15:34 +00:00
opencode-agent[bot]
02687b6324 chore: generate 2026-06-21 12:07:16 +00:00
Dax
c780d7cee7
feat(plugin): add v2 effect host (#33111) 2026-06-21 08:05:49 -04:00
Dax
0cf3ee4406
refactor(core): derive catalog availability from integrations (#32272) 2026-06-14 14:44:50 +02:00
Dax
30aec297d8
refactor(core): simplify integration credentials (#31968) 2026-06-12 06:15:25 +00:00
Dax
dac0dd5309
feat(core): add connector authentication (#31837) 2026-06-11 06:31:17 +00:00
Dax
11dbd15812
refactor(core): nest model api id (#30603) 2026-06-03 14:11:38 -04:00
Dax
1520b0de20
refactor(core): remove ai sdk option fields (#30581) 2026-06-03 17:32:58 +00:00
Dax
9583e08be4
feat(core): add location-scoped config loading (#29625) 2026-05-30 04:06:08 +00:00
opencode-agent[bot]
93131b6e4c chore: generate 2026-05-21 00:55:10 +00:00
Dax
8643c0721e
Rename v2 auth service to account (#28260) 2026-05-21 00:53:27 +00:00
Dax
16c457e712
refactor(core): move models.dev into core (#27347) 2026-05-13 20:58:24 -04:00
Renamed from packages/core/test/v2/plugin/provider-openai.test.ts (Browse further)