Skip to content

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

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

edenreich merged 3 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):

  • createDecision(request: SchemaCreateDecisionRequest, provider?: Provider): Promise<SchemaDecision> – 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: describe(createDecision) with a success and a not-supported case (happy path asserting the exact request, plus the not-supported 400 error path).
  • examples/decisions mirroring examples/images, listed in examples/README.md.

Cross-repo impact

Relays OpenAI Decisions API requests through the gateway with an optional
provider query. Adds tests and an examples/decisions walkthrough using a
single predicate question.
@edenreich edenreich changed the title feat: sync generated types with schemas v1.7.0 feat(client): add createDecision for the OpenAI Decisions API (schemas v1.7.0) Nov 3, 2026
@edenreich
edenreich merged commit 8fa268b into main Nov 3, 2026
1 check passed
@edenreich
edenreich deleted the schemas-sync branch November 3, 2026 19:58
@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.28.0](v0.27.2...v0.28.0) (2026-11-03)

### ✨ Features

* **client:** add createDecision for the OpenAI Decisions API (schemas v1.7.0) ([#332](#332)) ([8fa268b](8fa268b))

### 👷 CI

* **deps:** bump follow-redirects in /examples/mcp/mcp-servers/web-search ([#331](#331)) ([23aa3af](23aa3af))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.28.0 🎉

The release is available on:

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