Timothy Jaeryang Baek преди 4 месеца
родител
ревизия
0b336fb6f1
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      backend/open_webui/utils/payload.py

+ 2 - 0
backend/open_webui/utils/payload.py

@@ -332,6 +332,8 @@ def convert_payload_openai_to_ollama(openai_payload: dict) -> dict:
             ollama_payload["system"] = ollama_options["system"]
             del ollama_options["system"]
 
+        ollama_payload["options"] = ollama_options
+
     # If there is the "stop" parameter in the openai_payload, remap it to the ollama_payload.options
     if "stop" in openai_payload:
         ollama_options = ollama_payload.get("options", {})