mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 05:38:41 +00:00
fix: ollama native tool calling
This commit is contained in:
parent
f88a80ac47
commit
8d520eeecd
@ -154,6 +154,9 @@ def convert_payload_openai_to_ollama(openai_payload: dict) -> dict:
|
|||||||
)
|
)
|
||||||
ollama_payload["stream"] = openai_payload.get("stream", False)
|
ollama_payload["stream"] = openai_payload.get("stream", False)
|
||||||
|
|
||||||
|
if "tools" in openai_payload:
|
||||||
|
ollama_payload["tools"] = openai_payload["tools"]
|
||||||
|
|
||||||
if "format" in openai_payload:
|
if "format" in openai_payload:
|
||||||
ollama_payload["format"] = openai_payload["format"]
|
ollama_payload["format"] = openai_payload["format"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user