mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
PostgreSQL rejects text containing \x00 with error 22P05. When a request input contained null bytes (e.g. Perl stack traces), the spend log write failed on every scheduler tick, causing sustained high CPU on RDS. Add _strip_null_bytes() that recursively removes \x00 from all string values in a spend log payload before it reaches Prisma create_many. Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| helpers | ||
| prisma_and_spend | ||
| proxy_logging | ||
| __init__.py | ||