mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-28 16:56:08 +08:00
sjson.SetRaw with an empty string produces malformed JSON (e.g. "result":}). This happens when a Claude tool_result block has no content field, causing functionResponseResult.Raw to be "". Guard against this by falling back to sjson.Set with an empty string only when .Raw is empty.