From afc68af3a67b2f936429feb3a68c1f09e03ce930 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期五, 11 四月 2025 10:07:24 +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