Skip to content

Commit c962af1

Browse files
paultranvanclaude
andcommitted
fix(05-01): strip /v1 path from health probe URLs
The LLM/VLM base_url config includes the API path (e.g. http://host:8000/v1/) but the /health endpoint is at the service root. Strip /v1 before probing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a7d1d57 commit c962af1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openrag/api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,9 @@ async def health_check(request: Request):
233233
config = request.app.state.app_state.config
234234

235235
# Probe LLM and VLM services concurrently
236-
llm_base_url = config.llm.get("base_url", "")
237-
vlm_base_url = config.vlm.get("base_url", "")
236+
# Strip API path (e.g. /v1/) to get the service root for health probes
237+
llm_base_url = config.llm.get("base_url", "").split("/v1")[0]
238+
vlm_base_url = config.vlm.get("base_url", "").split("/v1")[0]
238239

239240
results = await asyncio.gather(
240241
check_service_health(llm_base_url, "llm"), check_service_health(vlm_base_url, "vlm"), return_exceptions=True

0 commit comments

Comments
 (0)