@@ -62,6 +62,8 @@ import { zooGatewayDefaultModelId } from "./zoo-gateway.js"
6262import type { ProviderName } from "../provider-settings.js"
6363import { providerIdentifiers } from "../provider-identifiers.js"
6464
65+ const NO_DEFAULT_MODEL_ID = ""
66+
6567/**
6668 * Get the default model ID for a given provider.
6769 * This function returns only the provider's default model ID, without considering user configuration.
@@ -99,17 +101,16 @@ export function getProviderDefaultModelId(
99101 case providerIdentifiers . zai :
100102 return options ?. isChina ? mainlandZAiDefaultModelId : internationalZAiDefaultModelId
101103 case providerIdentifiers . openaiNative :
104+ // TODO(#992): Replace this stale fallback with openAiNativeDefaultModelId.
102105 return "gpt-4o" // Based on openai-native patterns
103106 case providerIdentifiers . openaiCodex :
104107 return openAiCodexDefaultModelId
105108 case providerIdentifiers . mistral :
106109 return mistralDefaultModelId
107110 case providerIdentifiers . openai :
108- return "" // OpenAI provider uses custom model configuration
109111 case providerIdentifiers . ollama :
110- return "" // Ollama uses dynamic model selection
111112 case providerIdentifiers . lmstudio :
112- return "" // LMStudio uses dynamic model selection
113+ return NO_DEFAULT_MODEL_ID
113114 case providerIdentifiers . vscodeLm :
114115 return vscodeLlmDefaultModelId
115116 case providerIdentifiers . sambanova :
0 commit comments