mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
fixes for assistans API tests
This commit is contained in:
parent
5bf76f0bb1
commit
a62805f98f
2 changed files with 8 additions and 5 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue