mirror of
https://github.com/open-webui/open-webui
synced 2024-11-26 22:09:51 +00:00
fix ollama logic
This commit is contained in:
parent
2ada8cd5ad
commit
b4f1ea6013
@ -574,6 +574,7 @@ async def handle_nonstreaming_response(request: Request, response: Response,
|
|||||||
response_dict = json.loads(content)
|
response_dict = json.loads(content)
|
||||||
body = json.loads(request._body)
|
body = json.loads(request._body)
|
||||||
|
|
||||||
|
is_ollama = False
|
||||||
if app.state.MODELS[body["model"]]["owned_by"] == "ollama":
|
if app.state.MODELS[body["model"]]["owned_by"] == "ollama":
|
||||||
is_ollama = True
|
is_ollama = True
|
||||||
is_openai = not is_ollama
|
is_openai = not is_ollama
|
||||||
|
Loading…
Reference in New Issue
Block a user