From c6d830d377489a423e3cc595a7af26a33434ca62 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 6 May 2024 11:41:47 -0700 Subject: [PATCH] fix(anthropic.py): remove raise error on 'empty content' Fixes https://github.com/BerriAI/litellm/issues/3453 --- litellm/llms/anthropic.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/litellm/llms/anthropic.py b/litellm/llms/anthropic.py index d50129bc7..3fc374dce 100644 --- a/litellm/llms/anthropic.py +++ b/litellm/llms/anthropic.py @@ -184,11 +184,6 @@ class AnthropicChatCompletion(BaseLLM): message=str(completion_response["error"]), status_code=response.status_code, ) - elif len(completion_response["content"]) == 0: - raise AnthropicError( - message="No content in response", - status_code=500, - ) else: text_content = "" tool_calls = []