mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
test assistants endpoint
This commit is contained in:
parent
5587dbbd32
commit
7e82d98299
1 changed files with 7 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ async def test_create_delete_assistants(provider, sync_mode):
|
|||
custom_llm_provider="openai", assistant_id=assistant.id
|
||||
)
|
||||
print("Response deleting assistant", response)
|
||||
assert response.id == assistant.id
|
||||
else:
|
||||
assistant = await litellm.acreate_assistants(
|
||||
custom_llm_provider="openai",
|
||||
|
|
@ -107,6 +108,12 @@ async def test_create_delete_assistants(provider, sync_mode):
|
|||
)
|
||||
assert assistant.id is not None
|
||||
|
||||
response = await litellm.adelete_assistant(
|
||||
custom_llm_provider="openai", assistant_id=assistant.id
|
||||
)
|
||||
print("Response deleting assistant", response)
|
||||
assert response.id == assistant.id
|
||||
|
||||
|
||||
@pytest.mark.parametrize("provider", ["openai", "azure"])
|
||||
@pytest.mark.parametrize("sync_mode", [True, False])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue