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

Function assertPositiveContextLength

packages/oauth/src/managed-kimi-code.ts:751–755  ·  view source on GitHub ↗
(model: ManagedKimiCodeModelInfo)

Source from the content-addressed store, hash-verified

749}
750
751function assertPositiveContextLength(model: ManagedKimiCodeModelInfo): void {
752 if (!Number.isInteger(model.contextLength) || model.contextLength <= 0) {
753 throw new Error(`Kimi Code model "${model.id}" must include a positive context_length.`);
754 }
755}
756
757export async function provisionManagedKimiCodeConfigAfterLogin(
758 options: ProvisionManagedKimiCodeConfigOptions<ManagedKimiConfigShape>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected