import httpx
response = httpx.get("https://gateway.vlm.run/health")
print(response.status_code, response.json())
const response = await fetch("https://gateway.vlm.run/health");
console.log(response.status, await response.json());
curl https://gateway.vlm.run/health
{
"status": "ok",
"version": "0.66.0",
"commit": "39fb7c430b52562e93aba94b7bc90507a6ab1ae4",
"deployed_at": "26-11-20"
}
OpenAI Compatible API
Health
Gateway liveness and the build it runs
GET
/
health
import httpx
response = httpx.get("https://gateway.vlm.run/health")
print(response.status_code, response.json())
const response = await fetch("https://gateway.vlm.run/health");
console.log(response.status, await response.json());
curl https://gateway.vlm.run/health
{
"status": "ok",
"version": "0.66.0",
"commit": "39fb7c430b52562e93aba94b7bc90507a6ab1ae4",
"deployed_at": "26-11-20"
}
Returns whether the Gateway can take requests, and which build it runs. The route needs no API key and does not count toward a rate limit. It is not in the Gateway’s OpenAPI schema.
Each health replica checks the Gateway every 2 seconds, so two replies can disagree for up to 2 seconds after a change. A Gateway that rate-limits your requests still answers
The
| Status | status | When |
|---|---|---|
200 | ok | The Gateway has a running replica. |
503 | unavailable | The Gateway has no running replica. |
405 | none | The method is not GET or HEAD. |
200.
Response
| Field | Type | Description |
|---|---|---|
status | string | ok or unavailable. |
version | string | The Gateway release. |
commit | string | The git commit inside the running image. |
deployed_at | string | The date the image was built, as YY-MM-DD. A rollback or a restart reports the build date of that image, not the rollout date. |
503 reply has the same fields. Two replies with the same deployed_at come from the same build only when commit also matches.
import httpx
response = httpx.get("https://gateway.vlm.run/health")
print(response.status_code, response.json())
const response = await fetch("https://gateway.vlm.run/health");
console.log(response.status, await response.json());
curl https://gateway.vlm.run/health
{
"status": "ok",
"version": "0.66.0",
"commit": "39fb7c430b52562e93aba94b7bc90507a6ab1ae4",
"deployed_at": "26-11-20"
}