mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-05 02:55:48 +08:00
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:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user