feat: add OpenVINO NPU prototype services
This commit is contained in:
@@ -68,7 +68,7 @@ section "HTTP health"
|
||||
http_json "RAG endpoint" "http://127.0.0.1:18810/healthz" || true
|
||||
http_json "RAG/embedding health wrapper" "http://127.0.0.1:18814/healthz" || true
|
||||
http_json "Whisper NPU" "http://127.0.0.1:18816/health" || true
|
||||
http_json "OpenVINO embeddings" "http://127.0.0.1:18817/health" || true
|
||||
http_json "OpenVINO embeddings" "http://127.0.0.1:18817/healthz" || true
|
||||
# Prototypes are expected to be unavailable until explicitly started/approved.
|
||||
http_json "NPU reranker prototype" "http://127.0.0.1:18818/readyz" || true
|
||||
http_json "NPU router classifier prototype" "http://127.0.0.1:18819/healthz" || true
|
||||
@@ -91,10 +91,10 @@ if [[ -z "$response" ]]; then
|
||||
fi
|
||||
delta=$((after - before))
|
||||
printf 'sysfs_before_us=%s\nsysfs_after_us=%s\nsysfs_delta_us=%s\n' "$before" "$after" "$delta"
|
||||
printf '%s' "$response" | python - <<'PY' || true
|
||||
import json, sys
|
||||
RESPONSE_JSON="$response" python - <<'PY' || true
|
||||
import json, os
|
||||
try:
|
||||
data = json.load(sys.stdin)
|
||||
data = json.loads(os.environ.get('RESPONSE_JSON', ''))
|
||||
except Exception as exc:
|
||||
print(f'response_parse_error={type(exc).__name__}: {exc}')
|
||||
raise SystemExit(0)
|
||||
|
||||
Reference in New Issue
Block a user