/** * Kimi Code Provider Implementation * * Kimi Code is a separate API endpoint from the regular Moonshot (Kimi) API. * It uses the same API key but requires: * - Different base URL: https://api.kimi.com/coding/v1 * - Special User-Agent header: claude-code/1.0 * - Model: kimi-for-coding * * The API is OpenAI-compatible, so we extend OpenAIProvider. */ import { OpenAIProvider } from './openai.js'; import type { ProviderConfig } from './types.js'; /** * Kimi Code API provider adapter. * * Uses OpenAI-compatible API format with the Kimi Code endpoint. * CRITICAL: Requires User-Agent header set to 'claude-code/1.0' or the API rejects requests. * * Default base URL: https://api.kimi.com/coding/v1 * Default model: kimi-for-coding */ export declare class KimiCodeProvider extends OpenAIProvider { readonly name = "kimi-code"; constructor(config: ProviderConfig); /** * Build headers for Kimi Code API requests. * CRITICAL: Adds the required User-Agent header that Kimi Code API mandates. */ protected buildHeaders(): Record; /** * Check if the provider is available and configured correctly. * Kimi Code's /coding/v1 endpoint likely doesn't support /models, so we use a minimal chat completion. */ healthCheck(): Promise; } //# sourceMappingURL=kimi-code.d.ts.map