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

Function normalizeEnvValue

src/utils/model/providers.ts:18–21  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

16const FIRST_PARTY_ANTHROPIC_HOSTS = ['api.anthropic.com']
17
18function normalizeEnvValue(value: string | undefined): string | undefined {
19 const normalized = value?.trim()
20 return normalized && normalized.length > 0 ? normalized : undefined
21}
22
23export function getNoumenaBaseUrl(): string | undefined {
24 return normalizeEnvValue(process.env.NOUMENA_BASE_URL)

Callers 4

getNoumenaBaseUrlFunction · 0.85
getAnthropicBaseUrlFunction · 0.85
getOpenAIBaseUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected