UNPKG

@zhengxs/wechaty-plugin-assistant

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