mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
chore(guardrails): drop a comment that repeated its own docstring
This commit is contained in:
parent
249733e71c
commit
144d32979e
1 changed files with 0 additions and 2 deletions
|
|
@ -105,8 +105,6 @@ def anthropic_sse_error_frames(message: str | Mapping[str, object]) -> tuple[byt
|
|||
travel as a frame. A structured detail is JSON-serialized into the string so it stays machine
|
||||
readable without violating the string-typed contract.
|
||||
"""
|
||||
# AnthropicErrorDetail.message is a str, so a structured detail is serialized into the string
|
||||
# rather than nested as an object
|
||||
text: Final = message if isinstance(message, str) else json.dumps(message, default=str)
|
||||
body: Final = json.dumps(text)
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue