fix - anthropic messages exception
This commit is contained in:
parent
ee6e76e1f9
commit
1fc590c0d1
@ -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
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user