mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-16 12:24:08 +00:00
test assistants endpoint
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user