fixes for assistans API tests

This commit is contained in:
Ishaan Jaff 2025-04-19 07:59:53 -07:00
parent 5bf76f0bb1
commit a62805f98f
2 changed files with 8 additions and 5 deletions

View file

@ -304,6 +304,11 @@ def create_assistants(
"response_format": response_format,
}
# only send params that are not None
create_assistant_data = {
k: v for k, v in create_assistant_data.items() if v is not None
}
response: Optional[Union[Coroutine[Any, Any, Assistant], Assistant]] = None
if custom_llm_provider == "openai":
api_base = (