UNPKG

@sconedev/ai_toolkit

Version:

Simplify AI integration in web apps with local and offline model support

11 lines (10 loc) 398 B
import { Provider, ChatMessage } from '../core/providers'; export declare class HuggingFaceProvider implements Provider { private apiKey; private baseUrl; private defaultModel; constructor(apiKey: string, model?: string); private query; chat(messages: ChatMessage[], options?: any): Promise<string>; generateImage(description: string, options?: any): Promise<string>; }