Skip to content

[FEATURE] sync SDK to schemas v0.6.1: zai provider + Responses API #76

Description

Summary

inference-gateway/schemas v0.6.1 has drifted ahead of the SDK's generated models.py. While adding the llamacpp provider (#74, PR #75) as a surgical enum edit, diffing the committed openapi.yaml snapshot against v0.6.1 surfaced two additions that a full task generate would bring in but that were out of scope for the llamacpp change:

  • a new provider zai, appended after nvidia in the Provider enum
  • an entire OpenAI-compatible Responses API: POST /responses, plus CreateResponseRequest, Response, ResponseStreamEvent, and roughly 30 related schemas. client.py has no method for this endpoint yet.

PR #75 intentionally did not include these to keep it minimal, and because the CI sandbox had no network / datamodel-codegen to run codegen. A full task generate should be run in an environment with the toolchain to sync models.py and openapi.yaml to v0.6.1, and client.py should gain a method for the Responses API.

Acceptance Criteria

  • Provider enum includes zai
  • models.py regenerated from schemas v0.6.1 (Responses API models present)
  • client.py exposes a method for POST /responses (including the streaming variant)
  • Tests pass, working tree clean after regen

Activity

  1. edenreich commented on Jul 18, 2026

    @edenreich
    Contributor

    @claude Can you work on this? is it still relevant? use /ponytail:ponytail

  2. moved this to Todo in 2026on Jul 18, 2026
  3. inference-gateway-maintainer commented on Jul 18, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 19m 53s —— View job • feat/issue-76-20260718-1850 • [Create PR ➔](https://github.com/inference-gateway/python-sdk/compare/main...feat/issue-76-20260718-1850?quick_pull=1&title=Issue%20%2376%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%2376%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done - synced to schemas v0.6.2 (PR #77)

    Still relevant: models.py had llamacpp (#75) but no zai and no Responses API. Synced to v0.6.2 (current latest tag; only an internal rename separates it from the v0.6.1 named in the issue, and task generate always pulls latest).

    • Diffed committed spec/models vs v0.6.2 - model-affecting deltas: Provider += zai, Endpoints += responses, Responses API block
    • openapi.yaml regenerated to v0.6.2
    • Provider enum includes zai; Endpoints gains optional responses
    • Responses API models added (CreateResponseRequest, Response, ResponseStreamEvent + ~25 supporting schemas)
    • client.py: create_response (POST /responses) + create_response_stream (yields SSEvent)
    • New public models exported from __init__.py
    • Tests added (zai value, create_response parse/default-omission/structured-input+tools, streaming); all modules py_compile-clean

    Acceptance criteria

    • Provider enum includes zai
    • models.py synced to v0.6.2 (Responses API models present)
    • client.py exposes POST /responses incl. streaming
    • Working tree clean; tests added (see caveat)

    Heads-up for reviewers

    This sandbox has no datamodel-codegen/pydantic and blocks pip install, so I could not run pytest or the codegen here. models.py was hand-applied to match codegen output (exact deltas verified by diffing the committed spec against v0.6.2) and syntax-checked with py_compile; PR CI runs the real suite. New classes are appended at the file end (not interleaved in spec order) and two anonymous inline objects are named descriptively (Format, ResponseToolChoiceFunction) - semantically correct, but a follow-up task generate in a full toolchain is recommended to normalize ordering/naming to byte-clean.

    Docs tracking issue opened: inference-gateway/docs#420. Roadmap board moved to QA.
    · branch feat/issue-76-20260718-1850 · PR #77

  4. moved this from Todo to In progress in 2026on Jul 18, 2026
  5. moved this from In progress to QA in 2026on Jul 18, 2026
  6. moved this from QA to Done in 2026on Jul 18, 2026
  7. inference-gateway-releaser commented on Jul 18, 2026

    @inference-gateway-releaser
    Contributor

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

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions