From 0e5f87417a7f775252d14d79a9b85941130e0e2d Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 15 十一月 2024 15:55:45 +0800 Subject: [PATCH] 对话列表过滤name为空的,设置最多1000条返回 --- app/api/agent.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/app/api/agent.py b/app/api/agent.py index 4648ac2..713be16 100644 --- a/app/api/agent.py +++ b/app/api/agent.py @@ -29,7 +29,7 @@ async def chat_list( agent_id: str, page: int = Query(1, ge=1), - limit: int = Query(10, ge=1, le=100), + limit: int = Query(1000, ge=1, le=1000), db: Session = Depends(get_db), current_user: UserModel = Depends(get_current_user)): agent = db.query(AgentModel).filter(AgentModel.id == agent_id).first() @@ -49,7 +49,6 @@ bisheng_service = BishengService(base_url=settings.sgb_base_url) try: token = get_bisheng_token(db, current_user.id) - print(f"Calling get_chat_sessions with token={token}, page={page}, limit={limit}") result = await bisheng_service.get_chat_sessions(token, page, limit) except Exception as e: raise HTTPException(status_code=500, detail=str(e)) -- Gitblit v1.8.0