mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
style: apply ruff format to touched handlers
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
3018abc77c
commit
332e8aa3e5
2 changed files with 2 additions and 6 deletions
|
|
@ -949,9 +949,7 @@ class WebSearchInterceptionLogger(CustomLogger):
|
|||
if not native_blocks:
|
||||
return response
|
||||
if isinstance(response, _MutableMappingLike) and isinstance(response, dict):
|
||||
response["content"] = WebSearchInterceptionLogger._prepended_content(
|
||||
response.get("content"), native_blocks
|
||||
)
|
||||
response["content"] = WebSearchInterceptionLogger._prepended_content(response.get("content"), native_blocks)
|
||||
return response
|
||||
if isinstance(response, _HasContent):
|
||||
try:
|
||||
|
|
|
|||
|
|
@ -1163,9 +1163,7 @@ class AnthropicMessagesHandler(BaseTranslation):
|
|||
"""
|
||||
try:
|
||||
sse_string: Final = sse_bytes.decode("utf-8")
|
||||
return "".join(
|
||||
self._sse_text_delta(event) for event in sse_string.split("\n\n") if event.strip()
|
||||
)
|
||||
return "".join(self._sse_text_delta(event) for event in sse_string.split("\n\n") if event.strip())
|
||||
except Exception as e:
|
||||
verbose_proxy_logger.error("Error extracting text from SSE: %s", e)
|
||||
return ""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue