hugbot
Version:
Chatbot maker for HuggingFace Inference API and other AI API providers and backends.
12 lines • 477 B
TypeScript
import { AIClient } from "../../HugBotEntity/HugBotEntity";
/** Mock AI client for testing purposes.
* @param {number} maxDelay - maximum delay between responses */
export declare class AIClientMock implements AIClient {
#private;
private maxDelay;
constructor(maxDelay?: number);
/** Send request to mock AI api.
* @return Promise<string> */
sendRequest(prompt: string, apiToken?: string): Promise<string>;
}
//# sourceMappingURL=AIClientMock.d.ts.map