MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getAPIProvider

Function getAPIProvider

source code/utils/model/providers.ts:8–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6export type APIProvider = 'firstParty' | 'bedrock' | 'vertex' | 'foundry'
7
8export function getAPIProvider(): APIProvider {
9 return isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK)
10 ? 'bedrock'
11 : isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX)
12 ? 'vertex'
13 : isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY)
14 ? 'foundry'
15 : 'firstParty'
16}
17
18export function getAPIProviderForStatsig(): AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS {
19 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