Skip to content

[FEATURE] Regenerate models for relaxed chat stream chunk schema #181

Closed

Description

Summary

inference-gateway/schemas#331 (fixing inference-gateway/schemas#328) relaxes the chat stream chunk schemas so standard OpenAI chunks validate. finish_reason, logprobs, delta.content and delta.refusal become nullable, and delta.role / delta.content are no longer required. Once it is merged and released, regenerate the models so that CreateChatCompletionStreamResponse parses real stream chunks.

Acceptance Criteria

  • Run task oas-sync against the released schemas and regenerate inference_gateway/models.py
  • A chunk with "finish_reason": null, a delta without role, and an empty final delta parse into CreateChatCompletionStreamResponse
  • Revert the raw-JSON workaround in the examples (fix: read stream chunks as JSON in chat examples #178) to use the typed model again

Activity

  1. added a commit that references this issue on Nov 17, 2026
    92b7c48
  2. inference-gateway-releaser commented on Nov 17, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.26.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions