MCPcopy Create free account
hub / github.com/oboard/claude-code-rev / getAPIProvider

Function getAPIProvider

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

Source from the content-addressed store, hash-verified

27}
28
29export function getAPIProvider(): APIProvider {
30 const configuredBuiltInProvider = getConfiguredBuiltInProvider()
31
32 return isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK)
33 ? 'bedrock'
34 : isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX)
35 ? 'vertex'
36 : isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY)
37 ? 'foundry'
38 : configuredBuiltInProvider ?? 'firstParty'
39}
40
41export function getAPIProviderForStatsig(): AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS {
42 return getAPIProvider() as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS

Callers 15

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

Calls 2

isEnvTruthyFunction · 0.85

Tested by

no test coverage detected