Fix: An error message appears when accessing the agent's launch page: "pagesize exceeds maximum value". (#15835)

### What problem does this PR solve?
Fix: An error message appears when accessing the agent's launch page:
"pagesize exceeds maximum value".

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: balibabu <assassin_cike@163.com>
This commit is contained in:
balibabu
2026-06-09 16:56:47 +08:00
committed by GitHub
parent c586292993
commit 287a4cfd2b
4 changed files with 5 additions and 3 deletions

View File

@@ -1455,7 +1455,7 @@ async def agent_chat_completion(tenant_id, agent_id=None):
"dialog_id": cvs.id,
"user_id": user_id,
"exp_user_id": user_id,
"name": req.get("name", ""),
"name": req.get("name") or (query[:250] if query else "") or "",
"message": [
{
"role": "user",