Skip to content

feat: add response_format json_schema support#101

Closed
krakenalt wants to merge 12 commits into
ai-forever:mainfrom
krakenalt:split-response-format-pr
Closed

feat: add response_format json_schema support#101
krakenalt wants to merge 12 commits into
ai-forever:mainfrom
krakenalt:split-response-format-pr

Conversation

@krakenalt
Copy link
Copy Markdown
Collaborator

Summary

  • add typed support for chat requests with JSON Schema normalization
  • add / , docs, examples, and VCR fixtures for structured output flows
  • keep shorthand support for bare Pydantic models, , and typing annotations such as

Testing

  • uv run pytest tests/unit/gigachat/models/test_response_format.py tests/unit/gigachat/api/test_chat.py tests/unit/gigachat/test_client_chat_parse.py
  • uv run pytest -m integration tests/integration/test_chat_vcr.py::test_chat_response_format_json_schema tests/integration/test_chat_vcr.py::test_achat_response_format_json_schema tests/integration/test_chat_vcr.py::test_chat_parse_json_schema tests/integration/test_chat_vcr.py::test_achat_parse_json_schema # skipped in this environment

Rai220 and others added 12 commits March 30, 2026 11:54
… lint config

- Delete ADD_JSON_FEATURE.md (internal planning artifact, not for the repo)
- Restore 6 VCR cassettes that were unnecessarily re-recorded (only UUIDs/dates changed)
- Remove redundant --config flag from CI workflow (already set in pyproject.toml)
- Fix ruff formatting in client.py

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@krakenalt krakenalt closed this May 20, 2026
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.

2 participants