MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / providerSourceLabel

Function providerSourceLabel

apps/kimi-code/src/cli/sub/provider.ts:530–539  ·  view source on GitHub ↗
(provider: KimiConfig['providers'][string])

Source from the content-addressed store, hash-verified

528}
529
530function providerSourceLabel(provider: KimiConfig['providers'][string]): string {
531 const source = provider.source;
532 if (source !== undefined) {
533 if (source['kind'] === 'apiJson' && typeof source['url'] === 'string') {
534 return `apiJson(${source['url']})`;
535 }
536 }
537 if (provider.oauth !== undefined) return 'oauth';
538 return 'inline';
539}
540
541function errorMessage(error: unknown): string {
542 return error instanceof Error ? error.message : String(error);

Callers 1

handleProviderListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected