mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
test(test_keys.py): fix test
This commit is contained in:
parent
a6d7e54cda
commit
92ebe132e8
1 changed files with 5 additions and 2 deletions
|
|
@ -122,8 +122,11 @@ async def chat_completion(session, key, model="gpt-4"):
|
|||
)
|
||||
|
||||
return await response.json()
|
||||
except:
|
||||
pass
|
||||
except Exception as e:
|
||||
if "Request did not return a 200 status code" in str(e):
|
||||
raise e
|
||||
else:
|
||||
pass
|
||||
|
||||
|
||||
async def chat_completion_streaming(session, key, model="gpt-4"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue