Skip to content

Commit 2929774

Browse files
authored
chore: rm harcoded model definition from codex plugin (#20294)
1 parent 6e61a46 commit 2929774

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

packages/opencode/src/plugin/codex.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -375,38 +375,6 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
375375
delete provider.models[modelId]
376376
}
377377

378-
if (!provider.models["gpt-5.3-codex"]) {
379-
const model = {
380-
id: ModelID.make("gpt-5.3-codex"),
381-
providerID: ProviderID.openai,
382-
api: {
383-
id: "gpt-5.3-codex",
384-
url: "https://chatgpt.com/backend-api/codex",
385-
npm: "@ai-sdk/openai",
386-
},
387-
name: "GPT-5.3 Codex",
388-
capabilities: {
389-
temperature: false,
390-
reasoning: true,
391-
attachment: true,
392-
toolcall: true,
393-
input: { text: true, audio: false, image: true, video: false, pdf: false },
394-
output: { text: true, audio: false, image: false, video: false, pdf: false },
395-
interleaved: false,
396-
},
397-
cost: { input: 0, output: 0, cache: { read: 0, write: 0 } },
398-
limit: { context: 400_000, input: 272_000, output: 128_000 },
399-
status: "active" as const,
400-
options: {},
401-
headers: {},
402-
release_date: "2026-02-05",
403-
variants: {} as Record<string, Record<string, any>>,
404-
family: "gpt-codex",
405-
}
406-
model.variants = ProviderTransform.variants(model)
407-
provider.models["gpt-5.3-codex"] = model
408-
}
409-
410378
// Zero out costs for Codex (included with ChatGPT subscription)
411379
for (const model of Object.values(provider.models)) {
412380
model.cost = {

0 commit comments

Comments
 (0)