()
| 4 | export type APIProvider = 'firstParty' | 'bedrock' | 'vertex' | 'foundry' |
| 5 | |
| 6 | export 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 | |
| 16 | export function getAPIProviderForStatsig(): AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS { |
| 17 | return getAPIProvider() as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS |
no test coverage detected