GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: ensure gpt-5.2-codex has variants · bpd1069/opencode@b03172d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/opencode/src
    • plugin
      • codex.ts
    • provider
      • transform.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/src/plugin/codex.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/src/plugin/codex.ts
+8-2Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Hooks, PluginInput } from "@opencode-ai/plugin"
22
import { Log } from "../util/log"
33
import { OAUTH_DUMMY_KEY } from "../auth"
4+
import { ProviderTransform } from "../provider/transform"
45

56
const log = Log.create({ service: "plugin.codex" })
67

@@ -321,7 +322,7 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
321322
}
322323

323324
if (!provider.models["gpt-5.2-codex"]) {
324-
provider.models["gpt-5.2-codex"] = {
325+
const model = {
325326
id: "gpt-5.2-codex",
326327
providerID: "openai",
327328
api: {
@@ -337,13 +338,18 @@ export async function CodexAuthPlugin(input: PluginInput): Promise<Hooks> {
337338
toolcall: true,
338339
input: { text: true, audio: false, image: true, video: false, pdf: false },
339340
output: { text: true, audio: false, image: false, video: false, pdf: false },
341+
interleaved: false,
340342
},
341343
cost: { input: 0, output: 0, cache: { read: 0, write: 0 } },
342344
limit: { context: 400000, output: 128000 },
343-
status: "active",
345+
status: "active" as const,
344346
options: {},
345347
headers: {},
348+
release_date: "2025-12-18",
349+
variants: {} as Record<string, Record<string, any>>,
346350
}
351+
model.variants = ProviderTransform.variants(model)
352+
provider.models["gpt-5.2-codex"] = model
347353
}
348354

349355
// Zero out costs for Codex (included with ChatGPT subscription)
Collapse file

‎packages/opencode/src/provider/transform.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/src/provider/transform.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export namespace ProviderTransform {
318318
// https://v5.ai-sdk.dev/providers/ai-sdk-providers/openai
319319
if (id === "gpt-5-pro") return {}
320320
const openaiEfforts = iife(() => {
321-
if (id.includes("codex")) return WIDELY_SUPPORTED_EFFORTS
321+
if (id.includes("codex") && !id.includes("5.2")) return WIDELY_SUPPORTED_EFFORTS
322322
const arr = [...WIDELY_SUPPORTED_EFFORTS]
323323
if (id.includes("gpt-5-") || id === "gpt-5") {
324324
arr.unshift("minimal")

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.