Wrong parameter mapping for "frequency_penalty" to "repeat_penalty" in Ollama/completion/transformation.py (#11284)

This commit is contained in:
VigneshwarRajasekaran 2025-05-31 17:28:19 +09:30 committed by GitHub
parent 15ea80d2cf
commit 9df61ef08b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,7 +173,7 @@ class OllamaConfig(BaseConfig):
if param == "top_p":
optional_params["top_p"] = value
if param == "frequency_penalty":
optional_params["repeat_penalty"] = value
optional_params["frequency_penalty"] = value
if param == "stop":
optional_params["stop"] = value
if param == "response_format" and isinstance(value, dict):