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

Function defaultBaseUrl

packages/oauth/src/managed-kimi-code.ts:243–245  ·  view source on GitHub ↗
(baseUrl: string | undefined)

Source from the content-addressed store, hash-verified

241}
242
243function defaultBaseUrl(baseUrl: string | undefined): string {
244 return (baseUrl ?? kimiCodeBaseUrl()).replace(/\/+$/, '');
245}
246
247function normalizeBaseUrl(baseUrl: string): string {
248 return baseUrl.replace(/\/+$/, '');

Callers 3

resolveKimiCodeOAuthKeyFunction · 0.85

Calls 1

kimiCodeBaseUrlFunction · 0.90

Tested by

no test coverage detected