mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(router.py): fix client init
This commit is contained in:
parent
278cc75603
commit
eb46ea8f8b
3 changed files with 33 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
from typing import Optional, Union, Any
|
||||
import types, time, json
|
||||
import types, time, json, traceback
|
||||
import httpx
|
||||
from .base import BaseLLM
|
||||
from litellm.utils import (
|
||||
|
@ -349,7 +349,7 @@ class OpenAIChatCompletion(BaseLLM):
|
|||
if hasattr(e, "status_code"):
|
||||
raise OpenAIError(status_code=e.status_code, message=str(e))
|
||||
else:
|
||||
raise OpenAIError(status_code=500, message=str(e))
|
||||
raise OpenAIError(status_code=500, message=traceback.format_exc())
|
||||
|
||||
async def acompletion(
|
||||
self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue