litellm/enterprise/litellm_enterprise/enterprise_callbacks
ryan-crabbe-berri 019a9de603
fix(logging): stop dumping the request body at every layer under --detailed_debug (#48973)
* fix(logging): stop dumping the request body at every layer under --detailed_debug

The proxy dumped the full request body at every layer it passed through
(proxy entry, pre-call, router, SDK call echo, param mapping, logging
object), so one Codex "hi" wrote over 500KB of debug log. Keep the inbound
request line and the outgoing provider request, summarize large values in
the SDK call echo, and stop per-request lines that report nothing
(callback disable checks with no disable header, cost map name probes,
response id decode misses, vector store path misses).

* fix(logging): summarize tools in the param mapping debug lines

Non-Default params and Final returned optional params still printed full
tool definitions, so a Codex-style request repeated them twice more. Use
the same size summary as the SDK call echo and cover tools in the test.

* perf(logging): build the param mapping debug summary only when debug is on
2026-10-29 02:30:33 +00:00
..
pagerduty fix(lint): bring basedpyright rule counts back under their budget limits 2026-08-05 10:23:02 -07:00
secrets_plugins fix(hide-secrets): restore credential coverage lost to the 4.5 entropy limit (#40190) 2026-09-11 16:49:48 -07:00
send_emails refactor: expose core private helpers under public names (#44871) 2026-10-07 00:05:27 +00:00
__init__.py fix(lint): bring basedpyright rule counts back under their budget limits 2026-08-05 10:23:02 -07:00
callback_controls.py fix(logging): stop dumping the request body at every layer under --detailed_debug (#48973) 2026-10-29 02:30:33 +00:00
example_logging_api.py refactor(typing): clear 1181 basedpyright Any errors across 431 files (#47789) 2026-10-24 11:31:09 -07:00
llama_guard.py feat(audio_transcriptions/): calculate duration of audio file for cost calculation + feat (image_generations): cost tracking accuracy improved with output_format, quality, size values fixed per openai model 2025-11-08 16:24:31 -08:00
llm_guard.py refactor(typing): clear 1181 basedpyright Any errors across 431 files (#47789) 2026-10-24 11:31:09 -07:00
secret_detection.py fix(guardrails)!: make hide-secrets honor skip_tool_message_in_guardrail (#48689) 2026-10-28 14:49:48 -07:00