Skip to content

[DOCS] Document the decisions output modality and the model gate on POST /v1/decisions #1088

Closed

Description

@edenreich

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 (default false, schemas v1.9.0). When disabled, POST /v1/decisions returns 404 "The Decisions API is not enabled. Set DECISIONS_ENABLED=true to enable it.", the same contract as IMAGES_ENABLED and AUDIO_ENABLED.

  • GET /v1/models?include=modalities lists decisions in modalities.output for decision models. Today that is openai/gpt-6-luna (from the models.dev overrides) and any llama.cpp model whose listing advertises output_modalities: ["decisions"].

  • POST /v1/decisions with a model whose known output modalities lack decisions returns the gateway's own 400: 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/decisions serves 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, laya and 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_ENABLED row next to IMAGES_ENABLED and AUDIO_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 the decisions output 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 decisions output modality rule with the 400 example above and the unknown-model relay behaviour.

  • The models listing section lists decisions among the output modalities with openai/gpt-6-luna as the example.

  • A curl example shows GET /v1/models?include=modalities filtered to a decision model.

Activity

  1. added
    documentation
    on Nov 3, 2026
  2. added theissue type on Nov 3, 2026
  3. moved this to Todo in 2026on Nov 3, 2026
  4. edenreich commented on Nov 3, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this?

  5. inference-gateway-maintainer commented on Nov 3, 2026

    @inference-gateway-maintainer
    Contributor

    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

    • Read the Decisions API and models-listing sections plus the configuration reference
    • configuration.md: DECISIONS_ENABLED row (default false) next to the other API flags, and in the example .env
    • Decisions API section: opt-in flag + 404 example, supported providers (openai, ollama, ollama_cloud, llama.cpp), ollama/nimble curl, answers ordered by question name
    • New "Unsupported models" subsection: the 400 modality-gate error and the unknown-model relay behaviour
    • Models listing: modalities.input / modalities.output incl. decisions, filtered include=modalities curl and a openai/gpt-6-luna response example
    • bun run lint:md, bun run format:check, bun run build all pass
    • Committed and opened docs(api): decisions modality gate and DECISIONS_ENABLED #1089

    Opened #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. The DECISIONS_ENABLED row is hand-written in the non-generated generalSettings block, so if the gateway schema later generates that table the wording may need a regen.
    | Branch

  6. moved this from Todo to In progress in 2026on Nov 3, 2026
  7. moved this from In progress to QA in 2026on Nov 3, 2026
  8. moved this from QA to Done in 2026on Nov 3, 2026
  9. inference-gateway-releaser commented on Nov 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions