mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
Chat Completions treats a missing response_format.json_schema.strict as false, while Responses validates text.format strictly and rejects schemas without additionalProperties: false. Forwarding the format unchanged therefore turned valid requests into upstream 400 invalid_json_schema. Make the intended mode explicit by adding strict=false only when the field is absent; explicit strict values are untouched. Fixes #8760