fix(core): refine small model defaults (#33926)

This commit is contained in:
Aiden Cline
2026-06-25 20:31:53 -05:00
committed by GitHub
parent f428755851
commit ded29f03f0
3 changed files with 125 additions and 24 deletions

View File

@@ -235,6 +235,11 @@ export const layer = Layer.effect(
if (!record) return
const provider = record.provider
// TODO: Remove these provider-specific assumptions once model syncing reliably reports available deployments.
if (providerID === ProviderV2.ID.azure || providerID === ProviderV2.ID.make("azure-cognitive-services")) {
return
}
if (providerID === ProviderV2.ID.opencode) {
const gpt5Nano = record.models.get(ModelV2.ID.make("gpt-5-nano"))
if (gpt5Nano?.enabled && gpt5Nano.status === "active") return projectModel(gpt5Nano, provider)