feat: Ollama 미실행 시 설치 경로 탐색 후 자동 스폰
- LocalLLMService.ensureRunning(): /api/tags 핑 → 바이너리 탐색 → detached 스폰 - 플랫폼별 기본 설치 경로 + where/which PATH 폴백 - bootstrap initLLMPolling에서 startPolling 전에 호출 - 감지는 기존 5초 폴링이 담당, 블로킹 없음
This commit is contained in:
parent
c5eea6f7db
commit
3a160b9032
2 changed files with 119 additions and 0 deletions
|
|
@ -263,6 +263,8 @@ function notifyRenderer(channel: string, data?: Record<string, unknown>): void {
|
|||
|
||||
async function initLLMPolling(): Promise<void> {
|
||||
const llm = getLocalLLMService()
|
||||
// 설치되어 있는데 꺼져 있으면 자동 실행 (detached). 폴링이 준비 완료를 감지한다.
|
||||
await llm.ensureRunning()
|
||||
llm.startPolling()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue