Skip to content

修正ListFilesAsync接口pageSize参数别名#4

Merged
fengb3 merged 2 commits intofengb3:mainfrom
AntChen27:main
Mar 7, 2026
Merged

修正ListFilesAsync接口pageSize参数别名#4
fengb3 merged 2 commits intofengb3:mainfrom
AntChen27:main

Conversation

@AntChen27
Copy link
Contributor

  • 在ListFilesAsync方法中为pageSize参数添加AliasAs特性,名称为page_size
  • 确保HTTP请求查询参数与后端API保持一致

- 在ListFilesAsync方法中为pageSize参数添加AliasAs特性,名称为page_size
- 确保HTTP请求查询参数与后端API保持一致
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a query parameter name mismatch in the ListFilesAsync method of IFileApi.cs. The pageSize C# parameter was being sent to the backend as pageSize instead of page_size (which is what the RAGFlow backend API expects). The fix adds [AliasAs("page_size")] to ensure the correct query parameter name is used in HTTP requests.

Changes:

  • Added [AliasAs("page_size")] attribute to the pageSize parameter in ListFilesAsync to align the query parameter name with the backend API.
  • Added using WebApiClientCore; import (unused — see comment below).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fengb3 fengb3 merged commit 249bd73 into fengb3:main Mar 7, 2026
5 checks passed
@fengb3
Copy link
Owner

fengb3 commented Mar 7, 2026

感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants