MCPcopy Index your code
hub / github.com/Noumena-Network/code / getAPIProvider

Function getAPIProvider

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

Source from the content-addressed store, hash-verified

52}
53
54export function getAPIProvider(): APIProvider {
55 return isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK)
56 ? 'bedrock'
57 : isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX)
58 ? 'vertex'
59 : isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY)
60 ? 'foundry'
61 : 'firstParty'
62}
63
64export function getAPIProviderForStatsig(): AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS {
65 return getAPIProvider() as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS

Callers 15

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

Calls 1

isEnvTruthyFunction · 0.90

Tested by

no test coverage detected