test assistants endpoint

This commit is contained in:
Ishaan Jaff
2024-07-10 11:15:28 -07:00
parent 5587dbbd32
commit 7e82d98299
+7
View File
@@ -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])