fix: correct variable name in nonstreaming response handler

This commit is contained in:
smonux 2024-10-06 11:14:01 +02:00 committed by smonux (aider)
parent 83191dbe08
commit c17c9e2558

View File

@ -456,10 +456,10 @@ async def handle_nonstreaming_response(request: Request, response: Response, too
# Make another request to the model with the updated context # Make another request to the model with the updated context
update_body_request(request, body) update_body_request(request, body)
next_response = await call_next(request) response = await call_next(request)
response_dict = json.loads(next_response) response_dict = json.loads(response)
return response_dict return response
async def chat_completion_tools_handler( async def chat_completion_tools_handler(