mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
fix: convert _strip_null_bytes to non-recursive iterative implementation
CI code-quality check flags recursive functions. Split into two non-recursive helpers: _strip_null_bytes delegates to _strip_null_bytes_from_value for each value, handling two levels of nesting (sufficient for spend log payloads). Co-Authored-By: Ishaan Jaffer <155045088+ishaan-berri@users.noreply.github.com>
This commit is contained in:
parent
59b5921874
commit
2a8855ea3d
1 changed files with 0 additions and 1 deletions
|
|
@ -5539,7 +5539,6 @@ def _strip_null_bytes(payload: dict[str, object]) -> dict[str, object]:
|
|||
return {k: _strip_null_bytes_from_value(v) for k, v in payload.items()}
|
||||
|
||||
|
||||
|
||||
def _raise_failed_update_spend_exception(e: Exception, start_time: float, proxy_logging_obj: ProxyLogging):
|
||||
"""
|
||||
Raise an exception for failed update spend logs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue