From fb4beedd7ee92777711a854c1c264db460a38d49 Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期五, 11 四月 2025 09:56:29 +0800 Subject: [PATCH] 首页模型 --- app/api/v2/chat.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/api/v2/chat.py b/app/api/v2/chat.py index bdc0f05..abb2540 100644 --- a/app/api/v2/chat.py +++ b/app/api/v2/chat.py @@ -179,7 +179,7 @@ async def api_get_complex_model(current_user: UserModel = Depends(get_current_user), db: Session = Depends(get_db)): # current_user: UserModel = Depends(get_current_user) status_code = http_200 data = await service_get_complex_model(db) - if data: + if not data: status_code = http_500 return Response(data, media_type="application/json", status_code=status_code) -- Gitblit v1.8.0