UNPKG

@zhengxs/wechaty-plugin-assistant

Version:
18 lines (16 loc) 570 B
import { ChatModel, ChatType, ConversationContext } from '../interfaces'; import { ChatGPTAPI, ChatGPTAPIOptions } from '../llmapi'; import { PQueue } from '../vendors'; export interface ChatOpenAIOptions extends ChatGPTAPIOptions { concurrency?: number; interval?: number; } export declare class ChatOpenAI implements ChatModel { name: string; human_name: string; input_type: ChatType[]; protected api: ChatGPTAPI; protected limiter: PQueue; constructor(options: ChatOpenAIOptions); call(ctx: ConversationContext): Promise<void>; }