/** * Builtin provider profile for Moonshot AI (Kimi K2 legacy endpoint). * * This profile covers the **legacy** Moonshot OpenAI-compatible surface at * `api.moonshot.ai/v1`. It is distinct from the Kimi Code coding-plan * endpoint (see `kimi-code.ts` which targets `api.kimi.com/coding` with * Anthropic Messages protocol and device-code OAuth). * * Quirks encoded in this profile: * - Rejects `thinkingBudgetTokens` — Moonshot's API does not expose a * thinking-budget parameter (Anthropic-style). Callers MUST NOT set it. * - Sanitizes tool JSON schemas: removes `$schema` and root-level * `additionalProperties` which the Moonshot backend rejects. * * @task T9286 (W1d) * @epic T9261 (T-LLM-CRED-CENTRALIZATION Phase 3) */ import type { ProviderProfile } from '@cleocode/contracts'; /** Moonshot API base URL (OpenAI-compatible endpoint). */ export declare const MOONSHOT_BASE_URL = "https://api.moonshot.ai/v1"; /** Default Kimi K2 coding model identifier. */ export declare const MOONSHOT_DEFAULT_MODEL = "kimi-k2-0905-preview"; /** * Returns true when the model name belongs to Moonshot's Kimi model family. * * Matches: kimi-k2-0905-preview, kimi-k2-*, moonshot-v1-*, and any * model prefixed with "kimi-" or "moonshot-". */ export declare function isMoonshotModel(model: string): boolean; /** * Moonshot AI provider profile (Kimi K2 legacy OpenAI-compat endpoint). * * Encodes two provider-specific quirks as ProviderProfile hooks: * * 1. `buildApiKwargsExtras` — rejects `thinkingBudgetTokens` (not supported). * 2. `buildExtraBody` — sanitizes tool schemas (removes `$schema` + * root-level `additionalProperties`) for every Moonshot request that * carries tools. * * @task T9286 (W1d) */ export declare const moonshotProfile: ProviderProfile; //# sourceMappingURL=moonshot.d.ts.map