fix(dist): hasCoreModels() reflète le cœur post-refonte (GGUF speaker + Whisper)
Le raccourci hors-ligne testait encore l'ancien .pte 4B + talker_f16 comme « cœur », périmé depuis la refonte (Speaker = q35-lmq4.gguf, .pte = alternative admin, TTS provisionné à part #286). Une tablette correctement provisionnée était vue « cœur manquant » → re-check réseau inutile. Teste désormais q35-lmq4.gguf + whisper-small-sm8750. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
471fb5d5fb
commit
577aad3b2f
|
|
@ -65,12 +65,12 @@ class ProvisioningManager(context: Context) {
|
|||
* provisionnée — permet à l'onboarding de court-circuiter sans réseau.
|
||||
*/
|
||||
fun hasCoreModels(): Boolean {
|
||||
val llm = File(KazeiaPaths.llmDir, "hybrid_llama_qnn_4b.pte").exists() ||
|
||||
File(KazeiaPaths.llmDir, "hybrid_llama_qnn_4b_seq1024.pte").exists()
|
||||
val talker = File(KazeiaPaths.modelsDir, "talker_f32.gguf").exists() ||
|
||||
File(KazeiaPaths.modelsDir, "talker_f16.gguf").exists()
|
||||
// Cœur post-refonte 2026-06-17 : Speaker GGUF (q35-lmq4) + Whisper STT.
|
||||
// (Le LLM .pte est devenu une alternative admin ; le TTS est provisionné
|
||||
// à part — cf #286 productisation CosyVoice.)
|
||||
val llm = File(KazeiaPaths.modelsDir, "q35-lmq4.gguf").exists()
|
||||
val whisper = File(KazeiaPaths.modelsDir, "whisper-small-sm8750").isDirectory
|
||||
return llm && talker && whisper
|
||||
return llm && whisper
|
||||
}
|
||||
|
||||
/** Composants à (re)télécharger selon le diff catalogue ↔ état local. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue