diff options
| author | Aiden Cline <[email protected]> | 2026-03-31 11:13:11 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-31 11:13:11 -0500 |
| commit | 2929774acb2eb694800bccfc6a9f84ec691eb999 (patch) | |
| tree | bdfd166795ac61f154786f5e41a01593bc9c868f | |
| parent | 6e61a46a845b6c86c0c4b8af971f196751a4881c (diff) | |
| download | opencode-2929774acb2eb694800bccfc6a9f84ec691eb999.tar.gz opencode-2929774acb2eb694800bccfc6a9f84ec691eb999.zip | |
chore: rm harcoded model definition from codex plugin (#20294)
| -rw-r--r-- | packages/opencode/src/plugin/codex.ts | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/packages/opencode/src/plugin/codex.ts b/packages/opencode/src/plugin/codex.ts index 943295e64..ee42b9517 100644 --- a/packages/opencode/src/plugin/codex.ts +++ b/packages/opencode/src/plugin/codex.ts @@ -375,38 +375,6 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> { delete provider.models[modelId] } - if (!provider.models["gpt-5.3-codex"]) { - const model = { - id: ModelID.make("gpt-5.3-codex"), - providerID: ProviderID.openai, - api: { - id: "gpt-5.3-codex", - url: "https://chatgpt.com/backend-api/codex", - npm: "@ai-sdk/openai", - }, - name: "GPT-5.3 Codex", - capabilities: { - temperature: false, - reasoning: true, - attachment: true, - toolcall: true, - input: { text: true, audio: false, image: true, video: false, pdf: false }, - output: { text: true, audio: false, image: false, video: false, pdf: false }, - interleaved: false, - }, - cost: { input: 0, output: 0, cache: { read: 0, write: 0 } }, - limit: { context: 400_000, input: 272_000, output: 128_000 }, - status: "active" as const, - options: {}, - headers: {}, - release_date: "2026-02-05", - variants: {} as Record<string, Record<string, any>>, - family: "gpt-codex", - } - model.variants = ProviderTransform.variants(model) - provider.models["gpt-5.3-codex"] = model - } - // Zero out costs for Codex (included with ChatGPT subscription) for (const model of Object.values(provider.models)) { model.cost = { |
