Operating a source
Listing your models defines the contract; this page is about living with it — keeping a listing healthy, changing it safely, and diagnosing the pull findings the dashboard reports.
Pulls, precisely
Heimdallm fetches your model-list document on a schedule (default every 60 seconds, configurable per source from 1 minute to 24 hours) and on demand. Every run is recorded with its outcome, and each outcome has fixed consequences:
| Outcome | Meaning | Effect on your listing |
|---|---|---|
ok | Fetched, parsed, every entry valid. | Entries upserted; missing entries withdrawn. |
partial | Fetched and read; entries judged one by one, and some failed. | Valid entries list; an endpoint no valid entry lists is withdrawn, with the finding named against the entry that failed. |
invalid | The body was not a valid document (bad JSON, schema violation). | Nothing changes. |
unreachable | Network or HTTP failure. | Nothing is withdrawn — your endpoints stand on their health probes. |
unauthorized | Your source answered 401/403 (credential wrong or rotated). | Nothing withdrawn — but fix the credential; probes will keep testing health. |
blocked_address | Your models URL, or a redirect from it, resolves to an address off the public internet, or is plain HTTP reaching a public address. | Nothing withdrawn — serve the document from a publicly reachable address, over HTTPS. |
The design rule underneath: an outage of your models URL never delists you. Only a pull that
read your document withdraws anything, and what it withdraws is every endpoint no valid entry of
that document lists — omitted or failing validation alike (history and stats kept). A document whose
entries all fail validation therefore takes the source's endpoints out of the listing until the next
pull that validates, and that pull brings them back on its own: the same endpoint re-enters
pending health, with no manual step. An unreachable source costs you updates, not presence.
Withdrawal follows the document, not the endpoint's health: to take a model down deliberately,
remove it from the document (or set is_ready: false to keep it listed but out of routing —
the right tool for maintenance windows).
A live endpoint leaves routing on the second consecutive pull declaring is_ready: false, so a
flag that flickers between pulls costs you nothing and a maintenance window takes hold one pull
interval after you declare it. Declaring true again at any point restarts the count. A pull that
omits a live endpoint counts the same as one declaring false: a live entry missing from one read
stays live, and is withdrawn by the second consecutive pull that omits it or declares it not ready. An endpoint
that did leave returns through pending health rather than straight to live, since live is earned
from measured attempts; the probes it already answered while live are what promote it, so the wait is
one health-gate pass and not a fresh round of checks.
Health and the lifecycle
A new entry starts pending health and enters probing: Heimdallm calls it through the same
inference path customers use. Once two of its last three probes succeed, the endpoint goes
live and enters routing — no manual step. A failing endpoint is retried on a growing backoff
(1, 5, 15, then every 60 minutes) and never forgotten, so a recovering endpoint re-enters the
market on its own.
From routing's side, an endpoint's health tier is computed from the newest 20 attempts routed to it rather than from a clock window, so it recovers exactly as fast as new evidence arrives: healthy at 90% of them or better, degraded at 60%, down below. A run of consecutive probe failures short-circuits it downwards without waiting for the sample to turn over — two in a row is degraded, four is down — so a real outage shows within minutes. Healthier tiers are preferred.
One isolated failure moves none of this. A request that fails for a reason that predicts nothing about the next one — a socket that died in flight, an unreadable reply, a 5xx — is asked once more a quarter-second later, and only its second failure is recorded against you at all. Health is never what you claim; it is what the traffic shows, and a blip is not traffic. A reply past 256 MiB of decoded bytes, or 2 GiB on a text stream, is not asked again: it fails the attempt where it crosses that size.
A 429 your server answers before it starts on a request is a refusal at capacity, and it counts against your uptime like any other failure, because the caller was turned away. Two figures beside uptime tell the two apart. Reliability is the share of the requests you accepted that you answered, so a timeout, a 5xx or a stream that stops lowers it and a refusal at capacity does not. Saturation is the share of requests you refused that way. Low reliability is an engine to fix; high saturation is a deployment that needs more room, or a capacity report that reads full while it is, so routing tries endpoints with a free slot first. A 429 that names a quota, a credit balance or a rate limit on a key is not a refusal at capacity and counts against reliability as well. Both figures cover the last day and week, and each is withheld below ten requests, like uptime.
A refusal at capacity also holds your endpoint out of routing for a while, so the requests after it
do not arrive at the rate you just refused. The hold lasts what your Retry-After header names, in
seconds or as an HTTP date, up to 60 seconds. Without the header it is one second, doubling for each
refusal that arrives within a minute of the previous hold ending, up to 60 seconds, and shortened by up
to a fifth at random, so the gateway's instances do not return together. A refusal that arrives during
a hold can lengthen it but does not double it. A request sent after the latest refusal that you then
serve ends the hold early. While it lasts, requests go to the other endpoints serving the model, and a request with
nowhere else to go is answered 429 by Heimdallm without reaching you. Neither is an attempt of yours,
so neither moves your uptime, reliability or saturation: only the refusal that started the hold is
counted, once. Each gateway instance holds an endpoint on the refusals it received itself. Health
probes and capability checks are not held, since they are how your endpoint is measured, and one sent
after the latest refusal that succeeds ends the hold. A 503, a 5xx and a 429 naming a quota or a key's limit start no hold.
Declarations, checked
supported_parameters decides who receives which traffic, so the entries routing acts on are asked
about directly rather than taken on trust. Tool support can come from your declaration or be inferred
from the linked checkpoint. An endpoint with tools is asked to call one; an
endpoint declaring a reasoning_effort enum is asked at each declared level. An absent or unknown
level domain does not claim all API values and schedules no per-level checks. Each declared level carries
its own verdict, so a level your engine refuses is withheld on its own and every level it serves keeps
its traffic. none is the one level judged on the reply rather than on the status: it passes when the
reply's reasoning channel carries nothing, because a caller who asked for none is otherwise billed for
deliberation out of the budget that had to hold their answer.
A prose reply under tool_choice: "auto" is allowed and does not refute tool support. A reply cut
short by the probe’s token budget is inconclusive too. Actual refusals and malformed calls remain
failures.
A failed check is not downtime and never touches your uptime. The endpoint serves everything else that day perfectly, and marking it down would take away the traffic it can serve to punish the traffic it cannot. What it does is withhold the promise: requests needing that capability, or that level, go elsewhere until a check passes again. Checks repeat every six hours while passing and every half hour while failing, so a fixed engine wins its traffic back within half an hour with nothing to file. A check that failed without your engine refusing the request — a timeout, an overload, an outage — reaches no verdict at all and withholds nothing. Your dashboard names any declaration currently withheld, and the words your engine refused it with.
Reporting capacity
heimdall.live_capacity in your document (current of total concurrent request slots, across
all replicas) is read on a fast poll of its own, separately from the full pull. Fresh reports steer
routing: endpoints with free slots are tried before endpoints reporting nothing, saturated ones
last — never excluded, so requests still route when everything is busy. A report older than about
a minute counts as no report.
The honest implementation is a live counter around your serving path — requests in flight over
slots actually provisioned. A constant current: 0 is detectable and worth nothing; a racing
counter is tolerated (current above total is clamped, not rejected). If you cannot report
capacity, omit the field: an absent report is neutral, a fake one is not.
Changing things safely
- Price changes apply on the next pull that carries them, and land in the public price history as steps. See Pricing & demand.
- Credential rotation — an owner updates the credential on the source; the next pull presents
it. Keep the old credential valid until the change is saved, or the pull answers
unauthorized. - Moving infrastructure — bring the new origin up, point the source's base URL at it, and let the pull reconcile. Withdrawals happen only on a pull that read the document, for every endpoint no valid entry lists, so keep the document complete and valid during the move.
- Multiple sources are allowed (each a distinct base URL) — a chat cluster here, a transcription service there, one catalogue. Endpoints are keyed by source and model id.
- Deprecating — set
deprecation_datein the document and keep serving; give customers a runway measured in weeks, and list the replacement under its own id next to it. The catalogue keeps your history; a vanished id is a broken integration for everyone who pinned it.
Anthropic-dialect sources
A source whose dialect is Anthropic-compatible is for providers whose origin speaks the
Anthropic Messages API. Heimdallm posts to <base URL>/v1/messages with its own credentials and
translates on the way through: OpenAI-style messages and tools become Anthropic shapes, and the
usage that comes back is reassembled into the OpenAI fields (input, output, cached tokens).
Boundaries worth knowing:
- Chat only, streaming included. Completions, embeddings and transcriptions are not served by an Anthropic-dialect source — those requests fail rather than half-translate.
- A completion ceiling is required. A request that sends no
max_tokensis sent upstream with a default ceiling, since the dialect demands one. - The model list is still yours. The dialect changes how inference calls are shaped, not the model list document or the health probes.
If your origin serves both dialects, prefer OpenAI-compatible: it is the dialect the whole marketplace's surface (embeddings, transcriptions, parameter forwarding) is built around.
Behind a relay such as Bifrost
A source can put a relay between Heimdallm and its engines, for example to spread one model across several datacentres. Heimdallm reaches the relay exactly as it would reach an engine, so the relay has to hand every request through unchanged and give back what the engine answered. Bifrost does this when it is configured as below.
- Base URL. The relay's OpenAI-compatible path, ending in
/v1. The models document is served by you at its own URL and stays the source of truth: the relay's own/v1/modelslist is not a Heimdallm models document, and a pull of it isinvalid. - Credential. A Bifrost virtual key (
sk-bf-…) works as the source credential, because it is sent asAuthorization: Bearer. The pull and the capacity poll send the same credential to the models URL. serving_id. Themodelvalue Heimdallm sends, which is never the publicidwhenheimdall.serving_idis set. Set it to the name the relay routes, exactly as its workers register it, case included:vllm/<served name>for Bifrost'svllmtype, or the served model name where the relay resolves it bare. No alias on the relay is needed for Heimdallm's traffic. An endpoint is the pair ofidand quantization, so changingserving_idupdates the endpoint in place and keeps its measurements. A name the relay cannot resolve fails the request, and a relay that answers it with 429 rather than 404 reads as an endpoint out of capacity.- Provider type. Bifrost's
vllmandsglprovider types forward every body member. Its genericopenaitype drops members its own schema does not name, such asmin_p,repetition_penaltyandchat_template_kwargs, unless the request carriesx-bf-passthrough-extra-params: true, which Heimdallm sends on every request. Either way, declare only what the engines behind the relay honour. - Datacentres. One relay key per datacentre, each naming the same model, spreads requests across
them. Heimdallm sends the conversation's
x-session-id, which Bifrost adopts for session affinity when its key-value store is enabled, so a conversation keeps landing where its prefix cache is. - Retries. Set
network_config.max_retriesto at least1. An engine that closes idle keep-alive connections (vLLM's server does so after five seconds) otherwise makes the relay answer 502 on the next request it sends over one, and each of those is a failed request. - Silence. Bifrost writes its own
: heartbeatline every second once an answer has begun, and does not pass the engine's comments on. Heimdallm reads each of those lines as activity, so a stalled engine is ended by the relay's ownstream_idle_timeout_in_seconds. Set it to60so a stall fails as soon as it would with no relay in the path. - Errors. The relay keeps the engine's status and its message under
error.message, which is what Heimdallm reads, so a context-length refusal is still the caller's and a 429 is still your capacity. - Rails. Bifrost's
vllmtype serves chat, completions, embeddings, rerank and transcriptions, but not images or speech. List those on a source that reaches the engine directly.
Common findings, mapped to fixes
| Finding | Cause and fix |
|---|---|
| Entry skipped: missing required field | schema_version, id, at least one input modality and at least one output modality are required of every entry, and each output modality carries its supported_parameters map. A listed model also carries name, created and a context window in tokens, which the linked hugging_face_id supplies where the entry does not. Complete them. |
Entry skipped: id not author/slug or not lowercase | The author is the weights creator; ids are lowercase. Fix the id. |
| Price not a decimal string | cost_usd is a string like "0.0000004", never a number or a float. Quote it. |
hugging_face_id mismatch | Must be the exact repository id as on huggingface.co, case-sensitive — or omit it; never guess. |
Pull invalid: body too large / too many entries | The document is capped at 5 MiB and 2000 entries; 15 seconds to fetch. Serve a leaner list. |
| Warning: metadata disagrees with another provider | Several providers list the same id. Where both documents name the same hugging_face_id the sharing is correct and the fix is to match the canonical listing's values; where they name different repositories, the canonical listing's values stand and the differing fields are not applied. A build listed under its base's id whose weights were changed takes the variant suffix naming the change, with base_model naming the base; two makers' builds of the same kind share that id. An administrator can pin the canonical listing. |
Warning: supported_parameters looks copied | Declare only what this endpoint honours — customers route on the promise. |
unauthorized after key rotation | The credential saved on the source is stale; update it. |
unreachable though the URL works in a browser | Serve JSON to GET with a bearer token over TLS; check that nothing blocks datacentre egress or rewrites paths. |
blocked_address | The name resolves to a private, loopback, link-local or reserved address, or the URL is plain HTTP reaching a public address. Publish it on a public address, over HTTPS; the check runs at connect time and on every redirect hop. |
https_required | The models URL, or a redirect from it, is plain HTTP and reaches a public address on a source with no credential, so the document is not read. Serve it over HTTPS, or from inside a private prefix the deployment declares. |
credential_requires_https | The models URL, or a redirect from it, is plain HTTP and reaches a public address while the source holds a credential, so the credential is not presented there. Serve the document over HTTPS, or from inside a private prefix the deployment declares. |
| Requests refused before reaching you | Your base URL resolves to an address off the public internet, or is plain HTTP reaching a public address, so no request routed to you can be served; a customer's messages are never sent in clear, with a credential or without one. Nothing is withdrawn and your uptime is not charged. |
Streams ending with stopped sending mid-answer | Your engine sent neither a data frame nor an SSE comment line for a minute. This counts as a failed request against your uptime; look for sequences preempted or swapped out under a full batch. |
Streams ending with stopped producing output | Your engine kept the connection alive with SSE comments and produced no token, reasoning or tool call for thirty minutes after the answer began. This counts as a failed request against your uptime; a buffered tool call has that long to be delivered, so look for a decode that hung behind a keep-alive loop. |
closed the stream before the answer finished | Your engine closed the connection cleanly after part of the answer, with no finish reason, usage report or [DONE]. This counts as a failed request against your uptime; end every stream with a finish reason, then the usage report and [DONE]. |
Everything the dashboard reports is also in the pull run itself — outcome, HTTP status, the entry and field for each finding — so a fix can be verified with one Pull now.