mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(proxy_server.py): fix embedding model exception mapping
This commit is contained in:
parent
f7ebb84488
commit
71edb28d6a
2 changed files with 7 additions and 1 deletions
|
@ -3372,8 +3372,9 @@ async def embeddings(
|
|||
)
|
||||
verbose_proxy_logger.debug(traceback.format_exc())
|
||||
if isinstance(e, HTTPException):
|
||||
message = get_error_message_str(e)
|
||||
raise ProxyException(
|
||||
message=getattr(e, "message", str(e)),
|
||||
message=message,
|
||||
type=getattr(e, "type", "None"),
|
||||
param=getattr(e, "param", "None"),
|
||||
code=getattr(e, "status_code", status.HTTP_400_BAD_REQUEST),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue