mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-05 07:37:50 +00:00
fix: format redact_messages.py
This commit is contained in:
parent
eac21e5bee
commit
a705bc96fb
1 changed files with 5 additions and 1 deletions
|
|
@ -148,7 +148,11 @@ def _redacted_provider_specific_fields(fields: Mapping[str, object]) -> Mapping[
|
|||
**fields,
|
||||
**({"reasoning_content": REDACTED_BY_LITELLM} if fields.get("reasoning_content") is not None else {}),
|
||||
**({"reasoning": REDACTED_BY_LITELLM} if fields.get("reasoning") is not None else {}),
|
||||
**{key: None for key in ("thinking_blocks", "reasoningContentBlocks", "citations", "reasoning_details") if key in fields},
|
||||
**{
|
||||
key: None
|
||||
for key in ("thinking_blocks", "reasoningContentBlocks", "citations", "reasoning_details")
|
||||
if key in fields
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue