MCPcopy
hub / github.com/codeaashu/claude-code / getAPIProvider

Function getAPIProvider

src/utils/model/providers.ts:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4export type APIProvider = 'firstParty' | 'bedrock' | 'vertex' | 'foundry'
5
6export function getAPIProvider(): APIProvider {
7 return isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK)
8 ? 'bedrock'
9 : isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX)
10 ? 'vertex'
11 : isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY)
12 ? 'foundry'
13 : 'firstParty'
14}
15
16export function getAPIProviderForStatsig(): AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS {
17 return getAPIProvider() as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS

Callers 15

isEnabledFunction · 0.85
modelSupportsThinkingFunction · 0.85
modelSupportsEffortFunction · 0.85
modelSupportsISPFunction · 0.85
modelSupportsAutoModeFunction · 0.85
getToolSearchBetaHeaderFunction · 0.85

Calls 1

isEnvTruthyFunction · 0.85

Tested by

no test coverage detected