Files
faceclaw/app/native/local-llm-types.ts
T

14 lines
525 B
TypeScript

/** Shared shapes for the on-phone LLM (local-llm.ts on Android, local-llm.ios.ts on iOS). */
export type LocalModelState = {
/**
* Android downloads its model: absent → downloading → ready. iOS uses the
* system's Apple Intelligence model: ready, or unavailable (see detail).
*/
status: "absent" | "downloading" | "ready" | "unavailable";
bytesDownloaded: number;
totalBytes: number;
/** Why the model can't be used, when status is "unavailable" (short, for a settings row). */
detail?: string;
};