forked from phoenix/litellm-mirror
test(test_optional_params.py): fix optional params
This commit is contained in:
parent
c17f221b89
commit
50be25d11a
1 changed files with 3 additions and 0 deletions
|
@ -86,6 +86,7 @@ def test_azure_optional_params_embeddings():
|
|||
def test_azure_gpt_optional_params_gpt_vision():
|
||||
# for OpenAI, Azure all extra params need to get passed as extra_body to OpenAI python. We assert we actually set extra_body here
|
||||
optional_params = litellm.utils.get_optional_params(
|
||||
model="",
|
||||
user="John",
|
||||
custom_llm_provider="azure",
|
||||
max_tokens=10,
|
||||
|
@ -125,6 +126,7 @@ def test_azure_gpt_optional_params_gpt_vision():
|
|||
def test_azure_gpt_optional_params_gpt_vision_with_extra_body():
|
||||
# if user passes extra_body, we should not over write it, we should pass it along to OpenAI python
|
||||
optional_params = litellm.utils.get_optional_params(
|
||||
model="",
|
||||
user="John",
|
||||
custom_llm_provider="azure",
|
||||
max_tokens=10,
|
||||
|
@ -167,6 +169,7 @@ def test_azure_gpt_optional_params_gpt_vision_with_extra_body():
|
|||
|
||||
def test_openai_extra_headers():
|
||||
optional_params = litellm.utils.get_optional_params(
|
||||
model="",
|
||||
user="John",
|
||||
custom_llm_provider="openai",
|
||||
max_tokens=10,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue