mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45: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,
|
**response_data,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if isinstance(response, dict):
|
||||||
|
response = response_data
|
||||||
if isinstance(response, JSONResponse):
|
if isinstance(response, JSONResponse):
|
||||||
response = JSONResponse(
|
response = JSONResponse(
|
||||||
content=response_data,
|
content=response_data,
|
||||||
headers=response.headers,
|
headers=response.headers,
|
||||||
status_code=response.status_code,
|
status_code=response.status_code,
|
||||||
)
|
)
|
||||||
else:
|
|
||||||
response = response_data
|
|
||||||
|
|
||||||
return response
|
return response
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue