MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / getProviderProfile

Function getProviderProfile

ai/ai.ts:386–388  ·  view source on GitHub ↗
(
  providerConfig?: Pick<ProviderConfig, "url" | "type"> | null,
)

Source from the content-addressed store, hash-verified

384 if (!host) return DEFAULT_PROVIDER_TYPE;
385 return PROVIDER_HOST_TYPES[host] ?? DEFAULT_PROVIDER_TYPE;
386};
387
388const getProviderProfile = (
389 providerConfig?: Pick<ProviderConfig, "url" | "type"> | null,
390): ProviderProfile => PROVIDER_PROFILES[resolveProviderType(providerConfig)];
391

Callers 8

resolveModeMethod · 0.85

Calls 1

resolveProviderTypeFunction · 0.85

Tested by

no test coverage detected