mirror of
https://github.com/open-webui/open-webui
synced 2025-04-16 21:42:50 +00:00
Remove remapping of frequency_penalty to repeat_penalty
1) Ollama natively supports frequency_penalty, so this is not necessary. 2) Repeat_penalty is being added to Open WebUI in PR #10016, allowing Ollama users to pick which penalty methods they want.
This commit is contained in:
parent
877d21a029
commit
a4249a6351
@ -68,7 +68,6 @@ def apply_model_params_to_body_openai(params: dict, form_data: dict) -> dict:
|
|||||||
def apply_model_params_to_body_ollama(params: dict, form_data: dict) -> dict:
|
def apply_model_params_to_body_ollama(params: dict, form_data: dict) -> dict:
|
||||||
name_differences = {
|
name_differences = {
|
||||||
"max_tokens": "num_predict",
|
"max_tokens": "num_predict",
|
||||||
"frequency_penalty": "repeat_penalty",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for key, value in name_differences.items():
|
for key, value in name_differences.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user