MCPcopy Create free account
hub / github.com/Noumena-Network/code / isDirectApiKeyEnvVarName

Function isDirectApiKeyEnvVarName

src/utils/authEnv.ts:44–52  ·  view source on GitHub ↗
(
  value: string | null | undefined,
)

Source from the content-addressed store, hash-verified

42}
43
44export 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
54export function getDirectApiKeyProviderKind(
55 envVarName: DirectApiKeyEnvVarName | null = getDirectApiKeyEnvVarName(),

Callers 2

mapPrincipalSourceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected