forked from phoenix/litellm-mirror
test(test_assistants.py): handle openai api instability
This commit is contained in:
parent
28a07ee1a4
commit
8d4e7f9967
1 changed files with 75 additions and 70 deletions
|
@ -220,6 +220,9 @@ async def test_aarun_thread_litellm(sync_mode, provider, is_streaming):
|
||||||
- Create thread
|
- Create thread
|
||||||
- Create run w/ Assistants + Thread
|
- Create run w/ Assistants + Thread
|
||||||
"""
|
"""
|
||||||
|
import openai
|
||||||
|
|
||||||
|
try:
|
||||||
if sync_mode:
|
if sync_mode:
|
||||||
assistants = litellm.get_assistants(custom_llm_provider=provider)
|
assistants = litellm.get_assistants(custom_llm_provider=provider)
|
||||||
else:
|
else:
|
||||||
|
@ -298,3 +301,5 @@ async def test_aarun_thread_litellm(sync_mode, provider, is_streaming):
|
||||||
run
|
run
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
except openai.APIError as e:
|
||||||
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue