aiwrapper
Version:
A Universal AI Wrapper for JavaScript & TypeScript
15 lines (14 loc) • 585 B
TypeScript
import { OpenAIChatCompletionsLang } from "../openai/openai-chat-completions-lang.ts";
import { LangMessage } from "../language-provider.ts";
import { LangMessages } from "../messages.ts";
export type DeepSeekLangOptions = {
apiKey: string;
model?: string;
systemPrompt?: string;
maxTokens?: number;
};
export declare class DeepSeekLang extends OpenAIChatCompletionsLang {
constructor(options: DeepSeekLangOptions);
supportsReasoning(): boolean;
protected handleStreamData(data: any, result: LangMessages, onResult?: (result: LangMessage) => void): void;
}