fix - anthropic messages exception

This commit is contained in:
Ishaan Jaff 2025-06-27 21:06:15 -07:00
parent ee6e76e1f9
commit 1fc590c0d1

View file

@ -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
)