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

Function getDirectApiKeyProviderKindForSource

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

Source from the content-addressed store, hash-verified

67}
68
69export function getDirectApiKeyProviderKindForSource(
70 source: string | null | undefined,
71): DirectApiKeyProviderKind | null {
72 return isDirectApiKeyEnvVarName(source)
73 ? getDirectApiKeyProviderKind(source)
74 : null
75}
76
77export function isOpenAIDirectApiKeyEnvVar(
78 envVarName: DirectApiKeyEnvVarName | null = getDirectApiKeyEnvVarName(),

Callers 2

Calls 2

isDirectApiKeyEnvVarNameFunction · 0.85

Tested by

no test coverage detected