MCPcopy Index your code
hub / github.com/simstudioai/sim / getDefaultMothershipBaseURL

Function getDefaultMothershipBaseURL

apps/sim/lib/copilot/server/agent-url.ts:38–41  ·  view source on GitHub ↗
(fallbackUrl?: string | null)

Source from the content-addressed store, hash-verified

36}
37
38function getDefaultMothershipBaseURL(fallbackUrl?: string | null): string {
39 const fallback = typeof fallbackUrl === 'string' ? fallbackUrl : undefined
40 return normalizeUrl(fallback) ?? normalizeUrl(SIM_AGENT_API_URL) ?? SIM_AGENT_API_URL_DEFAULT
41}
42
43export async function getMothershipBaseURL(
44 options: GetMothershipBaseURLOptions = {}

Callers 1

getMothershipBaseURLFunction · 0.85

Calls 1

normalizeUrlFunction · 0.70

Tested by

no test coverage detected