From 1fc590c0d12d6fcdc78bb1f6aefabd4807a2dc05 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 27 Jun 2025 21:06:15 -0700 Subject: [PATCH] fix - anthropic messages exception --- litellm/llms/base_llm/anthropic_messages/transformation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/llms/base_llm/anthropic_messages/transformation.py b/litellm/llms/base_llm/anthropic_messages/transformation.py index 70a29e01005..d0728580076 100644 --- a/litellm/llms/base_llm/anthropic_messages/transformation.py +++ b/litellm/llms/base_llm/anthropic_messages/transformation.py @@ -114,6 +114,7 @@ class BaseAnthropicMessagesConfig(ABC): def get_error_class( self, error_message: str, status_code: int, headers: Union[dict, httpx.Headers] ) -> "BaseLLMException": + from litellm.llms.base_llm.chat.transformation import BaseLLMException return BaseLLMException( message=error_message, status_code=status_code, headers=headers )