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:
ferret99gt 2025-02-19 09:24:38 -05:00
parent 877d21a029
commit a4249a6351

View File

@ -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:
name_differences = {
"max_tokens": "num_predict",
"frequency_penalty": "repeat_penalty",
}
for key, value in name_differences.items():