mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 05:15:18 +00:00
refac
This commit is contained in:
parent
8f68b25510
commit
0b336fb6f1
1 changed files with 2 additions and 0 deletions
|
|
@ -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", {})
|
||||
|
|
|
|||
Loading…
Reference in a new issue