Skip to content

chore(openapi): Sync vendored OpenAPI spec with canonical schemas#7

Merged
edenreich merged 1 commit into
mainfrom
claude/issue-6-20260507-0029
May 7, 2026
Merged

chore(openapi): Sync vendored OpenAPI spec with canonical schemas#7
edenreich merged 1 commit into
mainfrom
claude/issue-6-20260507-0029

Conversation

@edenreich
Copy link
Copy Markdown
Collaborator

Summary

Re-runs task oas-download so the vendored openapi.yaml matches the canonical spec, and regenerates inference_gateway/models.py from the refreshed schema.

  • ChatCompletionChoice.logprobs is now the structured object (content + refusal arrays of ChatCompletionTokenLogprob) and is no longer required.
  • Trailing-whitespace drift on FunctionObject.parameters.description and CreateChatCompletionRequest.reasoning_format.description is absorbed.
  • task lint and task test pass locally.

Closes #6

Test plan

  • task lint
  • task test (22/22)
  • CI on PR

Generated with Claude Code

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>
@edenreich edenreich merged commit 1a58167 into main May 7, 2026
1 check passed
@edenreich edenreich deleted the claude/issue-6-20260507-0029 branch May 7, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Refactor sync vendored openapi.yaml with schemas

1 participant