(model: ManagedKimiCodeModelInfo)
| 749 | } |
| 750 | |
| 751 | function 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 | |
| 757 | export async function provisionManagedKimiCodeConfigAfterLogin( |
| 758 | options: ProvisionManagedKimiCodeConfigOptions<ManagedKimiConfigShape>, |
no outgoing calls
no test coverage detected