Support Apple Intelligence as an on-device AI model for the voice assistant/etc

This commit is contained in:
James Babcock committed 2026-10-31 17:48:45 -07:00
1 parent 3c3aa31542
commit 4973fd2aea
22 files changed
+1551 -40

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
/** 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;
};