mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(utils.py): fix openrouter params
Fixes https://github.com/BerriAI/litellm/issues/4488
This commit is contained in:
parent
49a72ffb51
commit
5e521bd36e
1 changed files with 8 additions and 13 deletions
|
@ -3842,23 +3842,18 @@ def get_supported_openai_params(
|
||||||
return litellm.AzureOpenAIConfig().get_supported_openai_params()
|
return litellm.AzureOpenAIConfig().get_supported_openai_params()
|
||||||
elif custom_llm_provider == "openrouter":
|
elif custom_llm_provider == "openrouter":
|
||||||
return [
|
return [
|
||||||
"functions",
|
|
||||||
"function_call",
|
|
||||||
"temperature",
|
"temperature",
|
||||||
"top_p",
|
"top_p",
|
||||||
"n",
|
|
||||||
"stream",
|
|
||||||
"stop",
|
|
||||||
"max_tokens",
|
|
||||||
"presence_penalty",
|
|
||||||
"frequency_penalty",
|
"frequency_penalty",
|
||||||
"logit_bias",
|
"presence_penalty",
|
||||||
"user",
|
"repetition_penalty",
|
||||||
"response_format",
|
|
||||||
"seed",
|
"seed",
|
||||||
"tools",
|
"max_tokens",
|
||||||
"tool_choice",
|
"logit_bias",
|
||||||
"max_retries",
|
"logprobs",
|
||||||
|
"top_logprobs",
|
||||||
|
"response_format",
|
||||||
|
"stop",
|
||||||
]
|
]
|
||||||
elif custom_llm_provider == "mistral" or custom_llm_provider == "codestral":
|
elif custom_llm_provider == "mistral" or custom_llm_provider == "codestral":
|
||||||
# mistal and codestral api have the exact same params
|
# mistal and codestral api have the exact same params
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue