diff --git a/src/main/index.ts b/src/main/index.ts index 2f1851d..ee042f7 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -34,9 +34,12 @@ app.whenReady().then(async () => { const continuity = new ContinuityService(db); const intent = new IntentService(repo); - const provider = new LocalOllamaProvider({ - endpoint: process.env.INKLING_OLLAMA_ENDPOINT + const resolvedEndpoint = process.env.INKLING_OLLAMA_ENDPOINT ?? 'http://localhost:11434'; + logger.info('ai.endpoint', { + endpoint: resolvedEndpoint, + fromEnv: process.env.INKLING_OLLAMA_ENDPOINT !== undefined }); + const provider = new LocalOllamaProvider({ endpoint: resolvedEndpoint }); const health = new HealthChecker(provider); void health.runOnce().then((h) => logger.info('ai.health', { ...h } as Record)); diff --git a/src/renderer/inbox/components/OllamaBanner.tsx b/src/renderer/inbox/components/OllamaBanner.tsx index 066f9cc..ff2c87f 100644 --- a/src/renderer/inbox/components/OllamaBanner.tsx +++ b/src/renderer/inbox/components/OllamaBanner.tsx @@ -9,8 +9,13 @@ export function OllamaBanner(): React.ReactElement | null { ? '`ollama pull gemma4:e4b` 실행 후 앱을 재시작해주세요.' : 'Inkling 정리가 잠시 멈췄습니다. Ollama를 실행해주세요.'; return ( -
+
⚠ {message} + {status.reason ? ( + + 진단: {status.reason} + + ) : null}
); }