( value: string | null | undefined, )
| 42 | } |
| 43 | |
| 44 | export function isDirectApiKeyEnvVarName( |
| 45 | value: string | null | undefined, |
| 46 | ): value is DirectApiKeyEnvVarName { |
| 47 | return ( |
| 48 | value === 'NOUMENA_API_KEY' || |
| 49 | value === 'ANTHROPIC_API_KEY' || |
| 50 | value === 'OPENAI_API_KEY' |
| 51 | ) |
| 52 | } |
| 53 | |
| 54 | export function getDirectApiKeyProviderKind( |
| 55 | envVarName: DirectApiKeyEnvVarName | null = getDirectApiKeyEnvVarName(), |
no outgoing calls
no test coverage detected