mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-19 07:04:40 +00:00
chore: generate
This commit is contained in:
@@ -1082,7 +1082,10 @@ export namespace Provider {
|
|||||||
|
|
||||||
for (const [modelID, model] of Object.entries(provider.models)) {
|
for (const [modelID, model] of Object.entries(provider.models)) {
|
||||||
model.api.id = model.api.id ?? model.id ?? modelID
|
model.api.id = model.api.id ?? model.id ?? modelID
|
||||||
if (modelID === "gpt-5-chat-latest" || (providerID === ProviderID.openrouter && modelID === "openai/gpt-5-chat"))
|
if (
|
||||||
|
modelID === "gpt-5-chat-latest" ||
|
||||||
|
(providerID === ProviderID.openrouter && modelID === "openai/gpt-5-chat")
|
||||||
|
)
|
||||||
delete provider.models[modelID]
|
delete provider.models[modelID]
|
||||||
if (model.status === "alpha" && !Flag.OPENCODE_ENABLE_EXPERIMENTAL_MODELS) delete provider.models[modelID]
|
if (model.status === "alpha" && !Flag.OPENCODE_ENABLE_EXPERIMENTAL_MODELS) delete provider.models[modelID]
|
||||||
if (model.status === "deprecated") delete provider.models[modelID]
|
if (model.status === "deprecated") delete provider.models[modelID]
|
||||||
|
|||||||
Reference in New Issue
Block a user