UNPKG

@unified-llm/core

Version:
20 lines (19 loc) 700 B
import { UnifiedChatRequest, UnifiedChatResponse, Tool } from '../../types/unified-api'; import BaseProvider from '../base-provider'; export declare class DeepSeekProvider extends BaseProvider { private apiKey; private baseUrl; constructor({ apiKey, model, tools }: { apiKey: string; model?: string; tools?: Tool[]; }); chat(request: UnifiedChatRequest): Promise<UnifiedChatResponse>; stream(request: UnifiedChatRequest): AsyncIterableIterator<UnifiedChatResponse>; private makeAPICall; private convertToDeepSeekFormat; private convertFromDeepSeekFormat; private convertStreamChunk; private handleError; private mapErrorType; }