mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-23 23:44:41 +00:00
When a chat-completions message has no usable content parts (empty array, empty text part, or filtered-out image part), marshalChatInputContent marshalled a nil slice to JSON null. The upstream Responses API rejects a null content field with HTTP 400. Fall back to an empty string instead. Fixes #2515