MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getModelIdForProvider

Function getModelIdForProvider

webview-ui/src/utils/validate.ts:193–203  ·  view source on GitHub ↗
(apiConfiguration: ProviderSettings, provider: ProviderName)

Source from the content-addressed store, hash-verified

191}
192
193function getModelIdForProvider(apiConfiguration: ProviderSettings, provider: ProviderName): string | undefined {
194 if (provider === "vscode-lm") {
195 return apiConfiguration.vsCodeLmModelSelector?.id
196 }
197
198 if (isCustomProvider(provider) || isFauxProvider(provider)) {
199 return apiConfiguration.apiModelId
200 }
201
202 return apiConfiguration[modelIdKeysByProvider[provider]]
203}
204
205/**
206 * Validates an Amazon Bedrock ARN and optionally checks if the region in

Calls 2

isCustomProviderFunction · 0.90
isFauxProviderFunction · 0.90

Tested by

no test coverage detected