수정
This commit is contained in:
@@ -104,10 +104,18 @@ ensure_host_ai() {
|
||||
return 0
|
||||
fi
|
||||
local ai_script="${LEGACY_STACK_DIR}/scripts/exdev/start-host-ai.sh"
|
||||
[[ -x "${ai_script}" ]] || [[ -f "${ai_script}" ]] || fail "호스트 AI 스크립트 없음: ${ai_script}"
|
||||
log "호스트 AI 기동..."
|
||||
bash "${ai_script}" || fail "start-host-ai.sh 실패"
|
||||
wait_http "http://127.0.0.1:${LLM_PORT}/v1/models" "호스트 LLM" 120 || true
|
||||
if [[ -x "${ai_script}" ]] || [[ -f "${ai_script}" ]]; then
|
||||
log "호스트 AI 기동..."
|
||||
bash "${ai_script}" || log "⚠️ start-host-ai.sh 일부 실패 — 기존 프로세스 확인"
|
||||
fi
|
||||
if host_ai_ready; then
|
||||
return 0
|
||||
fi
|
||||
if curl -sf --max-time 3 "http://127.0.0.1:${LLM_PORT}/v1/models" >/dev/null 2>&1; then
|
||||
log "⚠️ LLM만 응답 (Embed/Rerank 미기동) — degraded 모드로 계속"
|
||||
return 0
|
||||
fi
|
||||
fail "호스트 AI 미응답 (:${LLM_PORT})"
|
||||
}
|
||||
|
||||
stop_legacy_stack() {
|
||||
|
||||
Reference in New Issue
Block a user