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

Function getSessionCompatiblePlatformBaseUrl

src/utils/platformUrls.ts:28–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 * plane traffic must not be redirected there.
27 */
28export function getSessionCompatiblePlatformBaseUrl(): string {
29 const noumenaOverride = process.env.NOUMENA_PLATFORM_BASE_URL?.trim()
30 if (noumenaOverride) {
31 return normalizeBaseUrl(noumenaOverride)
32 }
33
34 const legacyAnthropicBaseUrl = getAnthropicBaseUrl()
35 if (isFirstPartyBaseUrlValue(legacyAnthropicBaseUrl)) {
36 return normalizeBaseUrl(legacyAnthropicBaseUrl)
37 }
38
39 return normalizeBaseUrl(getOauthConfig().BASE_API_URL)
40}
41
42export function getNoumenaPlatformWebSocketBaseUrl(): string {
43 const baseUrl = getNoumenaPlatformBaseUrl()

Callers 4

runFunction · 0.85
getBridgeBaseUrlFunction · 0.85
getDefaultApiBaseUrlFunction · 0.85

Calls 4

getAnthropicBaseUrlFunction · 0.85
isFirstPartyBaseUrlValueFunction · 0.85
getOauthConfigFunction · 0.85
normalizeBaseUrlFunction · 0.70

Tested by

no test coverage detected