mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-25 05:54:53 +00:00
style: shrink transformation helper to clear LIT001 ceiling
This commit is contained in:
parent
fdcd0244f5
commit
ba77ca902b
1 changed files with 1 additions and 3 deletions
|
|
@ -349,9 +349,7 @@ class AnthropicAdapter:
|
|||
|
||||
def _base_tool_use_id(raw_id: object) -> str:
|
||||
"""Strip an embedded thought signature from a tool_use / tool_result id."""
|
||||
if isinstance(raw_id, str):
|
||||
return split_anthropic_tool_use_id_signature(raw_id)[0]
|
||||
return ""
|
||||
return split_anthropic_tool_use_id_signature(raw_id)[0] if isinstance(raw_id, str) else ""
|
||||
|
||||
|
||||
_BlockT: Final = TypeVar("_BlockT", bound=Mapping[str, object])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue