mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix - anthropic messages exception
This commit is contained in:
parent
ee6e76e1f9
commit
1fc590c0d1
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue