Skip to content

Commit 4d1d428

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 f11a187 commit 4d1d428

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
@@ -243,8 +243,9 @@ async def health_check(request: Request):
243243
config = request.app.state.app_state.config
244244

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

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

0 commit comments

Comments
 (0)