Repository navigation
Description
Summary
The gateway now tells which models answer the Decisions API and rejects the others itself (inference-gateway/inference-gateway#831, issue inference-gateway/inference-gateway#829, schemas v1.8.0).
User-facing behaviour to document:
-
The Decisions API is opt-in:
DECISIONS_ENABLED=true(defaultfalse, schemas v1.9.0). When disabled,POST /v1/decisionsreturns404 "The Decisions API is not enabled. Set DECISIONS_ENABLED=true to enable it.", the same contract asIMAGES_ENABLEDandAUDIO_ENABLED. -
GET /v1/models?include=modalitieslistsdecisionsinmodalities.outputfor decision models. Today that isopenai/gpt-6-luna(from the models.dev overrides) and any llama.cpp model whose listing advertisesoutput_modalities: ["decisions"]. -
POST /v1/decisionswith a model whose known output modalities lackdecisionsreturns the gateway's own400:Model openai/gpt-6-sol is not supported by the Decisions API: its output modalities are [text], not decisions.Models unknown to the table are still relayed, so the upstream decides for them. -
Providers without a decisions endpoint keep returning
400 "The Decisions API is not supported by this provider yet."as before. -
POST /v1/decisionsserves Ollama (ollama/<model>), Ollama Cloud (ollama_cloud/clef:27b) and llama.cpp decision models with the same request and response shape as OpenAI. Clients never see the vendor's own decision format. Local Ollama decision models (nimble,tev1,clef-flash,d1,d3,layaand others listed at https://ollama.com/search?c=decision) are not yet marked in the models listing but work. The gateway PR is feat(api): serve /v1/decisions from Ollama and llama.cpp decision models inference-gateway#832 (issue [FEATURE] Translate /v1/decisions to the Ollama and llama.cpp System One decision API inference-gateway#830).
Affected pages:
-
The configuration reference page:
DECISIONS_ENABLEDrow next toIMAGES_ENABLEDandAUDIO_ENABLED. -
api-reference.md: the Decisions API section (added for docs#1086) gains the model rule and the new 400 example, and the models listing section mentions thedecisionsoutput modality.
Acceptance Criteria
-
The Decisions API section lists the supported providers (OpenAI, Ollama, Ollama Cloud, llama.cpp) with one curl example against
ollama/nimble, and says answers from Ollama and llama.cpp come back ordered by question name. -
The Decisions API section opens with the opt-in flag and the 404 example, and the configuration reference lists
DECISIONS_ENABLED. -
The Decisions API section documents the
decisionsoutput modality rule with the400example above and the unknown-model relay behaviour. -
The models listing section lists
decisionsamong the output modalities withopenai/gpt-6-lunaas the example. -
A curl example shows
GET /v1/models?include=modalitiesfiltered to a decision model.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Nov 3, 2026
@claude can you document this?
inference-gateway-maintainer commentedon Nov 3, 2026
Claude finished @edenreich's task in 3m 4s —— View job •
docs/issue-1088-20261103-2209• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1088-20261103-2209?quick_pull=1&title=Issue%20%231088%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231088%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documented the decisions output modality and the model gate
configuration.md:DECISIONS_ENABLEDrow (defaultfalse) next to the other API flags, and in the example.envopenai,ollama,ollama_cloud, llama.cpp),ollama/nimblecurl, answers ordered by question name400modality-gate error and the unknown-model relay behaviourmodalities.input/modalities.outputincl.decisions, filteredinclude=modalitiescurl and aopenai/gpt-6-lunaresponse examplebun run lint:md,bun run format:check,bun run buildall passOpened #1089 from
docs/issue-1088-20261103-2209.Skipped: did not touch
supported-providers.md- the acceptance criteria name only the API reference and the configuration page, and provider sections there are partly generated. TheDECISIONS_ENABLEDrow is hand-written in the non-generatedgeneralSettingsblock, so if the gateway schema later generates that table the wording may need a regen.| Branch
inference-gateway-releaser commentedon Nov 8, 2026
🎉 This issue has been resolved in version 0.9.24 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀