Skip to content

feat(client): add create_decision for the OpenAI Decisions API (schemas v1.7.0) - #163

Merged
edenreich merged 2 commits into
mainfrom
schemas-sync
Nov 3, 2026
Merged

edenreich merged 2 commits into
mainfrom
schemas-sync

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Deterministic type sync from inference-gateway/schemas at v1.7.0, which adds the OpenAI Decisions API (CreateDecisionRequest, DecisionQuestion, Decision, POST /decisions).

Client surface

On top of the regenerated types this PR adds the matching client method for the gateway's new POST /v1/decisions relay (inference-gateway/inference-gateway#827, issue inference-gateway/inference-gateway#816):

  • InferenceGatewayClient.create_decision(model, input, questions, provider=None, **kwargs) -> Decision – same shape as the image generation method: JSON in, JSON out, optional provider query override, no streaming (the upstream API has none). Providers without a decisions endpoint surface the gateway's 400 error.
  • Tests: test_create_decision, test_create_decision_not_supported (happy path asserting the exact request, plus the not-supported 400 error path).
  • examples/decisions mirroring examples/images, listed in examples/README.md.
  • CreateDecisionRequest, DecisionQuestion and Decision exported from the package root.

Cross-repo impact

Relays the OpenAI Decisions API through the gateway with the generated
CreateDecisionRequest/Decision models, exports them from the package and
adds a decisions example alongside the images one.
@edenreich edenreich changed the title feat: sync generated types with schemas v1.7.0 feat(client): add create_decision for the OpenAI Decisions API (schemas v1.7.0) Nov 3, 2026
@edenreich
edenreich merged commit a4a4d05 into main Nov 3, 2026
4 checks passed
@edenreich
edenreich deleted the schemas-sync branch November 3, 2026 19:59
@edenreich edenreich moved this from QA to Done in 2026 Nov 3, 2026
inference-gateway-releaser Bot added a commit that referenced this pull request Nov 3, 2026
## [0.23.0](v0.22.2...v0.23.0) (2026-11-03)

### ✨ Features

* **client:** add create_decision for the OpenAI Decisions API (schemas v1.7.0) ([#163](#163)) ([a4a4d05](a4a4d05))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.23.0 🎉

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

Labels

bot Opened by an org automation released Shipped in a release schema sync

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant