MCPcopy
hub / github.com/codedogQBY/ReadAny / getDefaultBaseUrl

Function getDefaultBaseUrl

packages/core/src/utils/api.ts:361–364  ·  view source on GitHub ↗
(providerId: string)

Source from the content-addressed store, hash-verified

359}
360
361export function getDefaultBaseUrl(providerId: string): string {
362 const config = getProviderConfig(providerId);
363 return config.defaultBaseUrl;
364}
365
366export function detectProviderFromUrl(url: string): string {
367 if (!url) return "custom";

Callers 11

AIPageFunction · 0.90
handleProviderChangeFunction · 0.90
AISettingsScreenFunction · 0.90
EndpointEditorFunction · 0.90
getEndpointBaseUrlFunction · 0.90
AIPageFunction · 0.90
handleProviderChangeFunction · 0.90
EndpointCardFunction · 0.90
AISettingsFunction · 0.90
resolveProviderBaseUrlFunction · 0.85
buildProviderModelsUrlFunction · 0.85

Calls 1

getProviderConfigFunction · 0.85

Tested by

no test coverage detected