mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-19 21:03:09 +00:00
14 lines
525 B
TypeScript
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;
|
|
};
|