mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-05 07:37:50 +00:00
Keep the masked prompt in the spend log body when a router retry or fallback also fails, since every attempt resets the logging object's messages to the raw prompt. Run the sync failure mask on its own thread pool and cancel it when it is still queued at its time bound. A guardrail with only an async logging hook now redacts the sync failure log instead of passing the raw prompt through. Extend the mid-stream failure log wait by the mask time only when a masking guardrail runs, so deployments without one keep the one second wait. |
||
|---|---|---|
| .. | ||
| helpers | ||
| prisma_and_spend | ||
| proxy_logging | ||
| __init__.py | ||