This commit is contained in:
Timothy Jaeryang Baek 2025-08-11 00:39:12 +04:00
parent 059cc636f6
commit fbb8c111ed

View file

@ -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: