forked from phoenix/litellm-mirror
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
Add a link
Reference in a new issue