()
| 88 | * Call this early in app initialization. |
| 89 | */ |
| 90 | export function tryAutoLoadLocalModel(): void { |
| 91 | const manager = getLocalModelManager(); |
| 92 | |
| 93 | if ('tryAutoLoad' in manager) { |
| 94 | if (isTauri()) { |
| 95 | // NativeLlmManager.tryAutoLoad is async |
| 96 | (manager as NativeLlmManager).tryAutoLoad(); |
| 97 | } else { |
| 98 | // GemmaModelManager.tryAutoLoad is sync |
| 99 | (manager as GemmaModelManager).tryAutoLoad(); |
| 100 | } |
| 101 | } |
| 102 | } |
nothing calls this directly
no test coverage detected