Skip to content

Commit c0cc21f

Browse files
committed
fix(api): 修正参数别名及添加DatasetId属性
- 在IDatasetApi接口中将pageSize参数的别名改为page_size - 在Retrieval类中添加DatasetId属性用于标识数据集ID
1 parent f743e01 commit c0cc21f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

RAGFlowSharp/Api/IDatasetApi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ [JsonContent] Update.RequestBody requestBody
6161
ITask<List.ResponseBody> ListDatasets(
6262
// ITask<HttpResponseMessage> ListDatasets(
6363
string? page = null,
64-
string? pageSize = null,
64+
[AliasAs("page_size")] string? pageSize = null,
6565
string? orderby = null,
6666
bool? desc = null,
6767
string? name = null,

RAGFlowSharp/Dtos/Chunk/Retrieval.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public class RetrievedChunk
3232
{
3333
public string Content { get; set; } = string.Empty;
3434
public string? ContentLtks { get; set; }
35+
public string DatasetId { get; set; } = string.Empty;
3536
public string DocumentId { get; set; } = string.Empty;
3637
public string? DocumentKeyword { get; set; }
3738
public string? Highlight { get; set; }

0 commit comments

Comments
 (0)