UNPKG

@capgo/capacitor-llm

Version:

Adds support for LLM locally runned for Capacitor

24 lines (23 loc) 742 B
import { WebPlugin } from '@capacitor/core'; import type { LLMPlugin, DownloadModelOptions, DownloadModelResult, ModelOptions } from './definitions'; export declare class CapgoLLMWeb extends WebPlugin implements LLMPlugin { private llm; private chatSessions; private readiness; getReadiness(): Promise<{ readiness: string; }>; createChat(): Promise<{ id: string; instructions?: string; }>; sendMessage(options: { chatId: string; message: string; }): Promise<void>; setModel(options: ModelOptions): Promise<void>; downloadModel(options: DownloadModelOptions): Promise<DownloadModelResult>; getPluginVersion(): Promise<{ version: string; }>; }