|
@@ -32,7 +32,7 @@ public class ChunkController {
|
|
|
String url = difyProperties.getBaseUrl() + "datasets/"+ dataset_id +"/documents/"+document_id +"/segments";
|
|
String url = difyProperties.getBaseUrl() + "datasets/"+ dataset_id +"/documents/"+document_id +"/segments";
|
|
|
return httpService.get(
|
|
return httpService.get(
|
|
|
url,
|
|
url,
|
|
|
- Map.of("page", page.getPageIndex(), "size", page.getPageSize(), "keyword", page.getKeyword()),
|
|
|
|
|
|
|
+ page.getKeyword()==null?Map.of("page", page.getPageIndex(), "size", page.getPageSize()):Map.of("page", page.getPageIndex(), "size", page.getPageSize(), "keyword", page.getKeyword()),
|
|
|
"Bearer "+difyProperties.getDatasetApiKey(),
|
|
"Bearer "+difyProperties.getDatasetApiKey(),
|
|
|
new TypeReference<>() {}
|
|
new TypeReference<>() {}
|
|
|
);
|
|
);
|