chore(openapi): Sync vendored OpenAPI spec with canonical schemas#7
Merged
Conversation
Re-run `task oas-download` so the local `openapi.yaml` matches the canonical spec. `ChatCompletionChoice.logprobs` now models the structured object (with `content` and `refusal` arrays of `ChatCompletionTokenLogprob`) and is no longer required, and trailing whitespace drift on `FunctionObject.parameters.description` and `CreateChatCompletionRequest.reasoning_format.description` is picked up. `inference_gateway/models.py` is regenerated from the refreshed spec. Refs #6 Co-authored-by: Eden Reich <edenreich@users.noreply.github.com>
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
Re-runs
task oas-downloadso the vendoredopenapi.yamlmatches the canonical spec, and regeneratesinference_gateway/models.pyfrom the refreshed schema.ChatCompletionChoice.logprobsis now the structured object (content+refusalarrays ofChatCompletionTokenLogprob) and is no longer required.FunctionObject.parameters.descriptionandCreateChatCompletionRequest.reasoning_format.descriptionis absorbed.task lintandtask testpass locally.Closes #6
Test plan
task linttask test(22/22)Generated with Claude Code