You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] python-sdk health_check and proxy_request target root-level routes #793
The Python SDK client (PyPI: inference-gateway) had a routing bug tracked in inference-gateway/python-sdk#133: when built the way every README example builds it
(InferenceGatewayClient("http://localhost:8080/v1")), health_check() and proxy_request() requested /v1/health and /v1/proxy/{provider}/..., but the gateway
serves both routes at the root, so a healthy gateway reported as unavailable and proxy
calls raised errors.
PR inference-gateway/python-sdk#136 fixes both methods to target the root-level routes
(/health and /proxy/{provider}/{path}), stripping a /v1 suffix from base_url the
same way the MCP client methods already do. The existing README "Health Check" and
"Proxy Requests" sections are already correct after the fix; no doc text had to change.
This ticket tracks making that root-route behavior explicit in the docs, so users of
the two methods (and of the MCP endpoints) know they are not version-prefixed.
Affected pages: python-sdk README sections "Health Check" and "Proxy Requests" and any
docs-site pages describing the Python SDK client's health check or proxy usage.
Acceptance Criteria
Docs state (where relevant) that health_check() and proxy_request() target the gateway's root-level routes even when base_url ends in /v1
No example shows these two methods expecting a /v1-prefixed path
If the MCP client methods are documented, the note mentions the same root-route convention
Two sentences in the Python SDK section of sdks.md (+2/-2):
"Models, tools, and health": health_check is now documented as probing the gateway's root /health endpoint, with the /v1 suffix on the base URL stripped for this root-level route.
"Proxy passthrough": notes the /proxy/{provider}/{path} route lives at the gateway root rather than under /v1, so the suffix is stripped from the base URL.
Acceptance criteria
Root-route behavior for health_check() and proxy_request() is now stated where both are documented - the Python section, which was the only gap (TypeScript, Go, and Rust sections already documented their root /health/proxy routes; the Python MCP note "the endpoint lives at the root, so a /v1 suffix on the base URL is stripped for you" was already present).
Grepped the site: no example shows either method expecting a /v1-prefixed path, and no example needed changes.
The MCP root-route note already exists, so criterion 3 was satisfied with no edit.
Skipped (ponytail)
No new pages, no cross-SDK rewrite, no code-comment additions to examples - the existing TS/Go/Rust wording pattern plus the two sentence tweaks cover the ticket. Nothing downstream: docs-only, no schema/gateway/SDK changes, so no follow-up issues or docs ticket.
Validation: bun run lint:md, bun run format:check, bun run build all pass. Issue is on the Roadmap board (QA).
Activity
edenreich commentedon Sep 25, 2026
@infer can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Sep 25, 2026
Model:
ollama_cloud/glm-5.3-flash· View JobTodos
Pull Request
#801
✅ Infer Result: Success
Done. PR: #801 (ready for review)
What changed
Two sentences in the Python SDK section of
sdks.md(+2/-2):health_checkis now documented as probing the gateway's root/healthendpoint, with the/v1suffix on the base URL stripped for this root-level route./proxy/{provider}/{path}route lives at the gateway root rather than under/v1, so the suffix is stripped from the base URL.Acceptance criteria
health_check()andproxy_request()is now stated where both are documented - the Python section, which was the only gap (TypeScript, Go, and Rust sections already documented their root/health/proxy routes; the Python MCP note "the endpoint lives at the root, so a/v1suffix on the base URL is stripped for you" was already present)./v1-prefixed path, and no example needed changes.Skipped (ponytail)
No new pages, no cross-SDK rewrite, no code-comment additions to examples - the existing TS/Go/Rust wording pattern plus the two sentence tweaks cover the ticket. Nothing downstream: docs-only, no schema/gateway/SDK changes, so no follow-up issues or docs ticket.
Validation:
bun run lint:md,bun run format:check,bun run buildall pass. Issue is on the Roadmap board (QA).Model:
ollama_cloud/glm-5.3-flash· Exit Code:0· Duration: 2m 26sTokens: 852,779 in · 7,915 out · 860,694 total (24 requests)
Tool calls: 28 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Sep 26, 2026
🎉 This issue has been resolved in version 0.9.17 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀