|
|
@@ -69,9 +69,9 @@ public class DocumentController {
|
|
|
public Result<Object> createDocumentByText(@RequestBody String body , @PathVariable String dataset_id) throws JsonProcessingException {
|
|
|
String url = difyProperties.getBaseUrl() + "datasets/"+dataset_id + "/document/create-by-text";
|
|
|
//String body = JacksonHolder.OBJECT_MAPPER.writeValueAsString(documentDTO);
|
|
|
- System.out.println(body);
|
|
|
- System.out.println(url);
|
|
|
- System.out.println(difyProperties.getDatasetApiKey());
|
|
|
+// System.out.println(body);
|
|
|
+// System.out.println(url);
|
|
|
+// System.out.println(difyProperties.getDatasetApiKey());
|
|
|
return httpService.post(url, null, "Bearer "+difyProperties.getDatasetApiKey(), body, new TypeReference<>() {});
|
|
|
}
|
|
|
|