mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
refac
This commit is contained in:
parent
059cc636f6
commit
fbb8c111ed
1 changed files with 2 additions and 2 deletions
|
|
@ -1344,14 +1344,14 @@ async def process_chat_response(
|
|||
**response_data,
|
||||
}
|
||||
|
||||
if isinstance(response, dict):
|
||||
response = response_data
|
||||
if isinstance(response, JSONResponse):
|
||||
response = JSONResponse(
|
||||
content=response_data,
|
||||
headers=response.headers,
|
||||
status_code=response.status_code,
|
||||
)
|
||||
else:
|
||||
response = response_data
|
||||
|
||||
return response
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue