mirror of
https://gh-proxy.org/https://github.com/klinsmaya/CLIProxyAPI.git
synced 2026-11-10 02:16:49 +08:00
Previously each dropped encrypted_content re-ran sjson.DeleteBytes on the whole body/array per item, causing O(n^2) work on inputs with many reasoning items. Now the array is walked once, editing only offending items in place and lazily building a replacement "input" array via strings.Builder. The builder stays nil (no allocation) when nothing needs sanitizing, and the array is spliced back with a single SetRawBytes call.