Skip to content

Commit b999600

Browse files
committed
refactor(types): name absent provider default
1 parent c9d2ca5 commit b999600

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/types/src/providers/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ import { zooGatewayDefaultModelId } from "./zoo-gateway.js"
6262
import type { ProviderName } from "../provider-settings.js"
6363
import { 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

Comments
 (0)