mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-18 06:26:16 +00:00
test(test_keys.py): fix test
This commit is contained in:
+5
-2
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user