mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
test: handle index error
This commit is contained in:
parent
142b195784
commit
b7ec53aec1
1 changed files with 4 additions and 1 deletions
|
|
@ -233,7 +233,10 @@ async def test_aarun_thread_litellm(sync_mode, provider, is_streaming):
|
|||
assistants = await litellm.aget_assistants(custom_llm_provider=provider)
|
||||
|
||||
## get the first assistant ###
|
||||
assistant_id = assistants.data[0].id
|
||||
try:
|
||||
assistant_id = assistants.data[0].id
|
||||
except IndexError:
|
||||
pytest.skip("No assistants found")
|
||||
|
||||
new_thread = test_create_thread_litellm(sync_mode=sync_mode, provider=provider)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue