From b2f0f45c9ec6c5bbca6e063d7e1eee0b8e352d7a Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Mon, 10 Aug 2026 04:23:14 +0000 Subject: [PATCH] chore: generate --- packages/core/src/plugin/models-dev.ts | 40 ++++++++++++++------------ 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/packages/core/src/plugin/models-dev.ts b/packages/core/src/plugin/models-dev.ts index 22cfc5bd62..d53feca8fa 100644 --- a/packages/core/src/plugin/models-dev.ts +++ b/packages/core/src/plugin/models-dev.ts @@ -59,25 +59,27 @@ function environmentNames(provider: ModelsDev.Snapshot) { } function snapshots(data: readonly ModelsDev.Snapshot[]) { - return structuredClone(data) - // These deprecated aliases are replaced by the canonical Azure and Google Vertex providers. - .filter( - (provider) => provider.info.id !== "azure-cognitive-services" && provider.info.id !== "google-vertex-anthropic", - ) - .map((provider) => { - const environment = new Set(provider.environment) - return { - ...provider, - info: { - ...provider.info, - ...(provider.info.settings ? { settings: resolveEnvironment(provider.info.settings, environment) } : {}), - }, - models: provider.models.map((model) => ({ - ...model, - ...(model.settings ? { settings: resolveEnvironment(model.settings, environment) } : {}), - })), - } - }) + return ( + structuredClone(data) + // These deprecated aliases are replaced by the canonical Azure and Google Vertex providers. + .filter( + (provider) => provider.info.id !== "azure-cognitive-services" && provider.info.id !== "google-vertex-anthropic", + ) + .map((provider) => { + const environment = new Set(provider.environment) + return { + ...provider, + info: { + ...provider.info, + ...(provider.info.settings ? { settings: resolveEnvironment(provider.info.settings, environment) } : {}), + }, + models: provider.models.map((model) => ({ + ...model, + ...(model.settings ? { settings: resolveEnvironment(model.settings, environment) } : {}), + })), + } + }) + ) } function resolveEnvironment(settings: Readonly>, environment: Set) {