Repository navigation
feat: regenerate SDK with OpenAI-compatible chat params (schemas#71) - #50
Merged
Merged
Conversation
Regenerate models from openapi.yaml (inference-gateway/schemas#71), adding temperature, top_p, n, stop, frequency_penalty, presence_penalty, seed, logprobs, top_logprobs, response_format, tool_choice, logit_bias, user, reasoning_effort, max_completion_tokens and parallel_tool_calls. The new fields carry non-None spec defaults, so serialize requests with exclude_unset=True to send only caller-specified fields (otherwise every request would leak temperature=1, top_p=1, parallel_tool_calls=True, ...). Export the response_format and tool_choice helper models and document the new parameters in the README. The re-vendored spec also re-added `content` to the required list of ChatCompletionStreamResponseDelta, reverting the fix for #29; the regression test is xfailed pending an upstream spec correction.
This was referenced Jun 18, 2026
inference-gateway-releaser Bot
added a commit
that referenced
this pull request
Jul 18, 2026
## [0.8.0](v0.7.1...v0.8.0) (2026-07-18) ### ✨ Features * add llamacpp provider to Provider enum ([#75](#75)) ([bb7bc9c](bb7bc9c)) * add minimax to the provider enum ([#43](#43)) ([c28e450](c28e450)) * add nvidia provider to Provider enum ([#60](#60)) ([5cf8954](5cf8954)), closes [#59](#59) * regenerate SDK with OpenAI-compatible chat params (schemas[#71](#71)) ([#50](#50)) ([61aa10b](61aa10b)), closes [#29](#29) * sync SDK to schemas v0.6.2 (zai provider + Responses API) ([#77](#77)) ([3660d1d](3660d1d)) ### 👷 CI * centralize claude.yml via reusable workflow ([#41](#41)) ([1e620cb](1e620cb)) * **claude:** centralize claude.yml via reusable workflow ([#71](#71)) ([9b7481e](9b7481e)) * **deps:** bump actions/setup-node in the github-actions group ([#79](#79)) ([ab6a229](ab6a229)) * **deps:** bump the github-actions group with 2 updates ([#37](#37)) ([e7ecffe](e7ecffe)) * **deps:** bump the github-actions group with 2 updates ([#44](#44)) ([c050d02](c050d02)) * **deps:** bump the github-actions group with 2 updates ([#53](#53)) ([11bc31f](11bc31f)) * **deps:** bump the github-actions group with 2 updates ([#58](#58)) ([4c713e6](4c713e6)) * **deps:** bump the github-actions group with 3 updates ([#55](#55)) ([8429e7e](8429e7e)) * **deps:** upgrade actions/checkout from v6.0.3 to v7.0.0 across workflows ([8aecc57](8aecc57)) * **infer:** centralize infer.yml + sync .infer config ([#52](#52)) ([0c811d7](0c811d7)) * **infer:** centralize infer.yml via reusable workflow ([#68](#68)) ([7f43f8a](7f43f8a)) * **infer:** centralize infer.yml via reusable workflow ([#69](#69)) ([ffb5088](ffb5088)) * **release:** update semantic release and plugins to latest versions with local installation ([cbd1fbf](cbd1fbf)) * restrict default workflow token permissions to contents: read ([#67](#67)) ([f0e051a](f0e051a)) ### 🔧 Miscellaneous * **deps:** bump claude-code 2.1.158 -> 2.1.161 ([#38](#38)) ([8a9ebdf](8a9ebdf)) * **deps:** bump claude-code 2.1.161 -> 2.1.170 ([#45](#45)) ([7432928](7432928)) * **deps:** bump claude-code 2.1.170 -> 2.1.177, claude-code-action v1.0.142 -> v1.0.150 ([#47](#47)) ([1da5c4b](1da5c4b)) * **deps:** bump claude-code 2.1.177 -> 2.1.197, claude-code-action v1.0.164 -> v1.0.165 ([#61](#61)) ([bec7ff2](bec7ff2)) * **deps:** bump claude-code 2.1.197 -> 2.1.201 ([#62](#62)) ([b5e4b72](b5e4b72)) * **deps:** bump claude-code-action v1.0.150 -> v1.0.152 ([#51](#51)) ([3e482ec](3e482ec)) * **deps:** bump claude-code-action v1.0.165 -> v1.0.169 ([#70](#70)) ([d75f954](d75f954)) * **deps:** bump infer CLI v0.119.0 -> v0.120.0, infer-action v0.11.4 -> v0.11.6 ([#35](#35)) ([bed8d56](bed8d56)) * **deps:** bump infer CLI v0.120.0 -> v0.120.1, infer-action v0.11.6 -> v0.11.7 ([#36](#36)) ([6fab732](6fab732)) * **deps:** bump infer CLI v0.120.1 -> v0.121.0 ([#39](#39)) ([73d774c](73d774c)) * **deps:** bump infer CLI v0.121.0 -> v0.121.1, infer-action v0.12.1 -> v0.13.1 ([#46](#46)) ([fec4ec3](fec4ec3)) * **deps:** bump infer CLI v0.121.1 -> v0.122.2, infer-action v0.15.1 -> v0.15.4 ([#54](#54)) ([500f248](500f248)) * **deps:** bump infer CLI v0.122.2 -> v0.125.0, infer-action v0.19.0 -> v0.19.1 ([#56](#56)) ([81aabbe](81aabbe)) * **deps:** bump infer CLI v0.125.0 -> v0.130.1, infer-action v0.19.1 -> v0.23.1 ([#57](#57)) ([55dd93c](55dd93c)) * **deps:** bump infer CLI v0.130.1 -> v0.133.0, infer-action v0.23.7 -> v0.26.0 ([#63](#63)) ([1857793](1857793)) * **deps:** bump infer CLI v0.133.0 -> v0.133.1, infer-action v0.26.0 -> v0.27.1 ([#64](#64)) ([e5782d7](e5782d7)) * **deps:** bump infer CLI v0.133.1 -> v0.137.0, infer-action v0.27.1 -> v0.29.0 ([#65](#65)) ([096a508](096a508)) * **deps:** bump infer CLI v0.137.0 -> v0.138.0, infer-action v0.29.0 -> v0.30.1 ([#66](#66)) ([3278c1d](3278c1d)) * **deps:** bump infer CLI v0.138.0 -> v0.141.0 ([#72](#72)) ([228b82d](228b82d)) * **deps:** bump infer CLI v0.141.0 -> v0.147.1 ([#73](#73)) ([ab5ead3](ab5ead3)) * **deps:** bump infer-action v0.11.7 -> v0.12.1 ([#40](#40)) ([77db342](77db342)) * **deps:** bump infer-action v0.13.1 -> v0.15.1 ([#48](#48)) ([5db7965](5db7965)) * **deps:** update manifest files to schema version 1.13.0 and bump codex version to ^0.139.0 ([8a1f3ae](8a1f3ae)) * **release:** update GitHub App credentials to use RELEASER_APP_ID and RELEASER_APP_PRIVATE_KEY ([07c185f](07c185f)) * remove deprecated configuration and shortcut files ([e0ffeec](e0ffeec)) * replace pip pre-commit with .githooks hook ([#80](#80)) ([f89d568](f89d568)) * update CI workflow to include permissions ([59987f0](59987f0))
Contributor
|
🎉 This PR is included in version 0.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Regenerates the Python SDK from the updated
openapi.yaml(inference-gateway/schemas#71), which added the remaining additive OpenAI-compatible request parameters toCreateChatCompletionRequest.Changes
openapi.yamlfrominference-gateway/schemas(1724 -> 1977 lines) and regeneratedinference_gateway/models.pyviatask generate.CreateChatCompletionRequest:temperature,top_p,n,stop,frequency_penalty,presence_penalty,seed,logprobs,top_logprobs,response_format,tool_choice,logit_bias,user,reasoning_effort, plusmax_completion_tokensandparallel_tool_calls.max_tokensis now markeddeprecated.oneOfunions verified clean (no dropped/flattened variants):stop: str | Stop | None(string or 1-4 string array)response_format: ResponseFormatText | ResponseFormatJsonSchema | ResponseFormatJsonObject | Nonetool_choice: ChatCompletionToolChoiceOption | None=Literal['none','auto','required'] | ChatCompletionNamedToolChoicetemperature=1,top_p=1,n=1,parallel_tool_calls=True, ...). Because the client serialized withmodel_dump(exclude_none=True), these would now be sent on every request. Switched tomodel_dump(exclude_none=True, exclude_unset=True)so the SDK sends only caller-specified fields and lets each provider apply its own defaults. This preserves the original minimal-request behavior.response_formatandtool_choicehelper models (ResponseFormatText,ResponseFormatJsonObject,ResponseFormatJsonSchema,ChatCompletionToolChoiceOption,ChatCompletionNamedToolChoice); nested builders remain available viainference_gateway.models. Added a README "Sampling and Output Controls" section.task lintandtask testare green (25 passed, 1 xfailed).Heads-up: incidental upstream regression
The re-vendored spec also re-added
contentto therequiredlist ofChatCompletionStreamResponseDelta, which reverts the fix for #29 (real streaming deltas, e.g. the first/last chunks, omitcontent). The SDK's own streaming path is unaffected (it yields rawSSEvents), but callers who validate chunks against the model are. The #29 regression test is markedxfail(strict=True)so it auto-flags once the spec is corrected. A tracking issue has been filed upstream to dropcontentfrom the delta's required list.Downstream impact
inference-gateway/schemas: needs theChatCompletionStreamResponseDeltacontent-required fix (tracking issue filed).inference-gateway/docs: new public-facing request parameters (docs issue filed).Closes #49