/** * DeepSeek API Client Module * * Handles communication with the DeepSeek Chat Completions API. * Uses the OpenAI-compatible API format. */ import type { LLMStreamChunk } from '../../llm_api/types.js'; /** * DeepSeek message role */ export interface DeepSeekMessage { role: 'user' | 'assistant' | 'system'; content: string; } /** * DeepSeek generation configuration parameters */ export interface DeepSeekGenerationConfig { /** Controls randomness in output (0.0-2.0). Lower = more deterministic */ temperature?: number; /** Nucleus sampling probability (0.0-1.0) */ top_p?: number; /** Maximum number of tokens in the response */ max_tokens?: number; } /** * Call the DeepSeek Chat Completions API (non-streaming) * @param opts - API call options * @returns Raw API response and HTTP status code */ export declare function call_deepseek_api(opts: { api_key: string; api_url: string; model: string; messages: DeepSeekMessage[]; generation_config?: DeepSeekGenerationConfig; }): Promise<{ raw: Record; status: number; }>; /** * Call the DeepSeek Chat Completions API with streaming enabled. * Yields LLMStreamChunk objects as SSE events arrive. * * @param opts - API call options * @yields LLMStreamChunk objects with text deltas or done/error signals */ export declare function call_deepseek_api_stream(opts: { api_key: string; api_url: string; model: string; messages: DeepSeekMessage[]; generation_config?: DeepSeekGenerationConfig; }): AsyncGenerator; //# sourceMappingURL=deepseek_client.d.ts.map