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

Function isManagedKimiCode

packages/oauth/src/managed-usage.ts:27–31  ·  view source on GitHub ↗
(providerKey?: string | null)

Source from the content-addressed store, hash-verified

25export const DEFAULT_KIMI_CODE_BASE_URL = 'https://api.kimi.com/coding/v1';
26
27export function isManagedKimiCode(providerKey?: string | null): boolean {
28 if (!providerKey) return false;
29 if (!providerKey.startsWith(MANAGED_PREFIX)) return false;
30 return providerKey.slice(MANAGED_PREFIX.length) === KIMI_CODE_PLATFORM_ID;
31}
32
33export function kimiCodeBaseUrl(): string {
34 return process.env['KIMI_CODE_BASE_URL'] ?? DEFAULT_KIMI_CODE_BASE_URL;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected