UNPKG

@capgo/capacitor-llm

Version:

Adds support for LLM locally runned for Capacitor

21 lines (20 loc) 675 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>; }