Merge pull request #3189 from merefield/main

FIX: ollama chat completion proxy internal server 500
This commit is contained in:
Krish Dholakia 2024-04-20 11:56:34 -07:00 committed by GitHub
commit 8a2f8c0418
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,7 +148,7 @@ class OllamaChatConfig:
if param == "top_p":
optional_params["top_p"] = value
if param == "frequency_penalty":
optional_params["repeat_penalty"] = param
optional_params["repeat_penalty"] = value
if param == "stop":
optional_params["stop"] = value
if param == "response_format" and value["type"] == "json_object":