UNPKG

@zhengxs/wechaty-plugin-assistant

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