UNPKG

@zhengxs/wechaty-plugin-assistant

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