@@ -64,6 +64,8 @@ import { zooGatewayDefaultModelId } from "./zoo-gateway.js"
6464import type { ProviderName } from "../provider-settings.js"
6565import { providerIdentifiers } from "../provider-identifiers.js"
6666
67+ const NO_DEFAULT_MODEL_ID = ""
68+
6769/**
6870 * Get the default model ID for a given provider.
6971 * This function returns only the provider's default model ID, without considering user configuration.
@@ -101,17 +103,16 @@ export function getProviderDefaultModelId(
101103 case providerIdentifiers . zai :
102104 return options ?. isChina ? mainlandZAiDefaultModelId : internationalZAiDefaultModelId
103105 case providerIdentifiers . openaiNative :
106+ // TODO(#992): Replace this stale fallback with openAiNativeDefaultModelId.
104107 return "gpt-4o" // Based on openai-native patterns
105108 case providerIdentifiers . openaiCodex :
106109 return openAiCodexDefaultModelId
107110 case providerIdentifiers . mistral :
108111 return mistralDefaultModelId
109112 case providerIdentifiers . openai :
110- return "" // OpenAI provider uses custom model configuration
111113 case providerIdentifiers . ollama :
112- return "" // Ollama uses dynamic model selection
113114 case providerIdentifiers . lmstudio :
114- return "" // LMStudio uses dynamic model selection
115+ return NO_DEFAULT_MODEL_ID
115116 case providerIdentifiers . vscodeLm :
116117 return vscodeLlmDefaultModelId
117118 case providerIdentifiers . sambanova :
0 commit comments