Skip to content

Commit 3533f33

Browse files
chore: generate
1 parent 1cb7df7 commit 3533f33

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/opencode/src/provider/provider.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,10 @@ export namespace Provider {
10821082

10831083
for (const [modelID, model] of Object.entries(provider.models)) {
10841084
model.api.id = model.api.id ?? model.id ?? modelID
1085-
if (modelID === "gpt-5-chat-latest" || (providerID === ProviderID.openrouter && modelID === "openai/gpt-5-chat"))
1085+
if (
1086+
modelID === "gpt-5-chat-latest" ||
1087+
(providerID === ProviderID.openrouter && modelID === "openai/gpt-5-chat")
1088+
)
10861089
delete provider.models[modelID]
10871090
if (model.status === "alpha" && !Flag.OPENCODE_ENABLE_EXPERIMENTAL_MODELS) delete provider.models[modelID]
10881091
if (model.status === "deprecated") delete provider.models[modelID]

0 commit comments

Comments
 (0)