diff --git a/litellm/tests/test_assistants.py b/litellm/tests/test_assistants.py index e84a4f1acdc..9c51bfb419b 100644 --- a/litellm/tests/test_assistants.py +++ b/litellm/tests/test_assistants.py @@ -62,10 +62,10 @@ async def test_get_assistants(provider, sync_mode): @pytest.mark.parametrize("provider", ["openai"]) @pytest.mark.parametrize( "sync_mode", - [False], + [True, False], ) @pytest.mark.asyncio -async def test_create_assistants(provider, sync_mode): +async def test_create_delete_assistants(provider, sync_mode): data = { "custom_llm_provider": provider, } @@ -85,6 +85,12 @@ async def test_create_assistants(provider, sync_mode): == "You are a personal math tutor. When asked a question, write and run Python code to answer the question." ) assert assistant.id is not None + + # delete the created assistant + response = litellm.delete_assistant( + custom_llm_provider="openai", assistant_id=assistant.id + ) + print("Response deleting assistant", response) else: assistant = await litellm.acreate_assistants( custom_llm_provider="openai",