Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test assistants fixes

Ishaan Jaff0a35c208d70e
diff --git a/tests/local_testing/test_assistants.py b/tests/local_testing/test_assistants.py
index 592e692b880..c626e5b685e 100644
--- a/tests/local_testing/test_assistants.py
+++ b/tests/local_testing/test_assistants.py
@@ -236,11 +236,18 @@ async def test_aarun_thread_litellm(sync_mode, provider, is_streaming):
"""
import openai
+
+
try:
+ get_assistants_data = {
+ "custom_llm_provider": provider,
+ }
+ if provider == "azure":
+ get_assistants_data = _add_azure_related_dynamic_params(get_assistants_data)
if sync_mode:
- assistants = litellm.get_assistants(custom_llm_provider=provider)
+ assistants = litellm.get_assistants(**get_assistants_data)
else:
- assistants = await litellm.aget_assistants(custom_llm_provider=provider)
+ assistants = await litellm.aget_assistants(**get_assistants_data)
## get the first assistant ###
try: