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",

View File

@@ -719,7 +719,7 @@ export const useFetchSessionsByCanvasId = () => {
const { data } = await fetchAgentLogsByCanvasId(canvasId, {
page: 1,
page_size: 100000,
page_size: 100,
exp_user_id: tenantInfo.tenant_id,
});

View File

@@ -317,6 +317,8 @@ export const useFetchPureFileList = () => {
mutationFn: async (parentId: string) => {
const { data } = await fileManagerService.listFile({
parent_id: parentId,
page_size: 100,
page: 1,
});
return data;

View File

@@ -475,7 +475,7 @@ export const useManageMetaDataModal = (
return handleSaveSettings(callback, builtInMetadata);
case MetadataType.SingleFileSetting:
return handleSaveSingleFileSettings(callback);
return handleSaveSingleFileSettings(callback, builtInMetadata);
default:
handleSaveManage(callback);
break;