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] Document context_window resolution for GET /v1/models include param #441
runtime - the serving runtime's configured window (llama.cpp /props n_ctx, Ollama show API num_ctx / context_length). This can be smaller than the model's theoretical maximum and is the limit clients must respect.
provider - a window published by the upstream provider in its model listing (e.g. Mistral max_context_length, Cohere context_length).
null - no window could be resolved; a slow or failing lookup also resolves to null without failing the request.
Without include=context_window the response stays byte-for-byte OpenAI-compatible (no key at all).
Affected pages: the /v1/models API reference and any page documenting the include query parameter.
Acceptance Criteria
The include=context_window parameter and the {tokens, source} response shape are documented on the /v1/models reference
The runtime-vs-provider-vs-null resolution order is explained, including that runtime values reflect the configured (possibly reduced) window
An example response for a llama.cpp model with a reduced --ctx-size is included
Activity
edenreich commentedon Jul 20, 2026
@infer Can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Jul 20, 2026
Model:
ollama_cloud/deepseek-v4-flash· View JobTodos
Pull Request
#445
✅ Infer Result: Success
All checks pass - clean tree, no ahead, PR #445 is open as draft. Everything is complete.
Model:
ollama_cloud/deepseek-v4-flash· Exit Code:0· Duration: 3m 24sTokens: 2,224,263 in · 7,423 out · 2,231,686 total (35 requests)
Tool calls: 40 total · 98% success rate
Traces
Stats
Triggered by edenreich · Infer Action
inference-gateway-releaser commentedon Jul 22, 2026
🎉 This issue has been resolved in version 0.9.3 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀