export type Complexity = 'low' | 'medium' | 'high' | 'multimodal'; export type ModelTier = 'cheap' | 'standard' | 'smart' | 'multimodal'; export type ModelId = 'claude-haiku-4-5' | 'claude-sonnet-4-6' | 'claude-opus-4-7' | 'gpt-4o-mini' | 'gpt-4o' | 'o1' | 'deepseek-chat' | 'kimi-k2' | 'qwen-max' | 'doubao-pro-256k'; export interface ModelSpec { id: ModelId; provider: 'anthropic' | 'openai' | 'deepseek' | 'kimi' | 'qwen' | 'doubao'; tier: ModelTier; /** 估算价格 USD per 1M token (input avg) */ price_per_1m_input: number; /** 估算价格 USD per 1M token (output avg) */ price_per_1m_output: number; /** 是否支持多模态 (image input) */ multimodal: boolean; /** 上下文窗口 (tokens) */ context_window: number; } export interface RouteRequest { /** 用户原 prompt 或 messages 拼接后的总 token 估算 */ estimated_input_tokens: number; /** Hint: 用户对场景的标签 (e.g. "coding", "writing", "search") */ hint?: string; /** 是否含图片 */ has_image?: boolean; /** 用户偏好 — 强制 cheap / smart 等 */ prefer_tier?: ModelTier; /** 排除的 provider (e.g. 国内用户排除 anthropic) */ exclude_providers?: Array; } export interface RouteDecision { model_id: ModelId; reason: string; complexity: Complexity; estimated_cost_usd: number; alternatives: ModelId[]; } //# sourceMappingURL=types.d.ts.map