From 7e82d98299a66bb07fbb0357ba02ad49503e547f Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 10 Jul 2024 11:15:28 -0700 Subject: [PATCH] test assistants endpoint --- litellm/tests/test_assistants.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/litellm/tests/test_assistants.py b/litellm/tests/test_assistants.py index 9c51bfb419..f0bff4e0e9 100644 --- a/litellm/tests/test_assistants.py +++ b/litellm/tests/test_assistants.py @@ -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])