MCPcopy Create free account
hub / github.com/Roy3838/Observer / tryAutoLoadLocalModel

Function tryAutoLoadLocalModel

app/src/utils/localLlm/LocalModelManager.ts:90–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 * Call this early in app initialization.
89 */
90export 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}

Callers

nothing calls this directly

Calls 3

isTauriFunction · 0.90
getLocalModelManagerFunction · 0.85
tryAutoLoadMethod · 0.45

Tested by

no test coverage detected