mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
998c22890d
Object-typed JSON Schemas without `required` could be reserialized as `required: null` by strict OpenAI-compatible upstreams (bailian / glm / zhipu), which then reject the request with `at '/required': got null, want array`. Default missing/non-array `required` to `[]` at the tool generation boundary so the wire format stays consistent. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>