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] Note stricter healthCheck() semantics in the TypeScript SDK #792
The TypeScript SDK changed the behavior of InferenceGatewayClient.healthCheck() in PR inference-gateway/typescript-sdk#258. It now returns false for any non-2xx HTTP response (for example a 502 or 503 from an ingress or load balancer in front of a stopped gateway, or a 404 from a misconfigured baseURL), not only when fetch fails at the network level. Previously any HTTP status resolved as healthy. The new behavior matches the OpenAPI spec for GET /health, which returns a 200 status code only if the service is healthy.
sdks.md (TypeScript SDK section): healthCheck now documented as resolving true only on a 2xx response and false for any non-2xx status - a 502 or 503 from an ingress in front of a stopped gateway, a 404 from a misconfigured baseURL - or a network-level failure; the liveness-probe comment in the example was sharpened to match.
Verified nothing stale remains: no docs page claimed healthCheck() returns true for any HTTP response; the Python/Go/Rust SDK sections describe their own unchanged return conventions, and the gateway GET /health reference already documents the 200-when-healthy contract.
The Health Check section now states the boolean contract (true on 2xx, false on any non-2xx or network failure, never throws) and the example drops the misleading try/catch, since the method cannot reject.
Validation: bun run lint:md, bun run format:check, and bun run build all pass on the docs change; the README change is docs-only (hooks skipped in the companion repo for the README-only commit). Both PRs are open for human review; no releases, tags, or merges were touched.
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
#800
✅ Infer Result: Success
Done. All acceptance criteria are covered across two open PRs; the tree is clean, everything is pushed, and the issue is on the Roadmap board in QA.
What changed
Docs site - PR #800 (#800):
sdks.md(TypeScript SDK section):healthChecknow documented as resolvingtrueonly on a 2xx response andfalsefor any non-2xx status - a 502 or 503 from an ingress in front of a stopped gateway, a 404 from a misconfigured baseURL - or a network-level failure; the liveness-probe comment in the example was sharpened to match.healthCheck()returns true for any HTTP response; the Python/Go/Rust SDK sections describe their own unchanged return conventions, and the gatewayGET /healthreference already documents the 200-when-healthy contract.TypeScript SDK README - PR #260 (inference-gateway/typescript-sdk#260):
trueon 2xx,falseon any non-2xx or network failure, never throws) and the example drops the misleading try/catch, since the method cannot reject.Validation:
bun run lint:md,bun run format:check, andbun run buildall pass on the docs change; the README change is docs-only (hooks skipped in the companion repo for the README-only commit). Both PRs are open for human review; no releases, tags, or merges were touched.Model:
ollama_cloud/glm-5.3-flash· Exit Code:0· Duration: 6m 16sTokens: 1,999,625 in · 25,197 out · 2,024,822 total (39 requests)
Tool calls: 57 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 📦🚀