From c17c9e2558c266ee5761976b1583ae437948cb3d Mon Sep 17 00:00:00 2001 From: smonux Date: Sun, 6 Oct 2024 11:14:01 +0200 Subject: [PATCH] fix: correct variable name in nonstreaming response handler --- backend/open_webui/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index 4693809e9..7379d063d 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -456,10 +456,10 @@ async def handle_nonstreaming_response(request: Request, response: Response, too # Make another request to the model with the updated context update_body_request(request, body) - next_response = await call_next(request) - response_dict = json.loads(next_response) + response = await call_next(request) + response_dict = json.loads(response) - return response_dict + return response async def chat_completion_tools_handler(