chore: generate

This commit is contained in:
opencode-agent[bot]
2026-02-12 22:14:45 +00:00
parent 93eee0daf4
commit d475fd6137

View File

@@ -1243,9 +1243,7 @@ export namespace Provider {
return { providerID: entry.providerID, modelID: entry.modelID }
}
const provider = Object.values(providers).find(
(p) => !cfg.provider || Object.keys(cfg.provider).includes(p.id),
)
const provider = Object.values(providers).find((p) => !cfg.provider || Object.keys(cfg.provider).includes(p.id))
if (!provider) throw new Error("no providers found")
const [model] = sort(Object.values(provider.models))
if (!model) throw new Error("no models found")