Просмотр исходного кода

fix: update Knowledge Api doc: 【Update a Chunk in a Document】 (#15823)

過世秋風 1 месяц назад
Родитель
Сommit
98bd79f548

+ 2 - 2
web/app/(commonLayout)/datasets/template/template.en.mdx

@@ -1313,7 +1313,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
     <CodeGroup title="Response">
     ```json {{ title: 'Response' }}
     {
-      "data": [{
+      "data": {
         "id": "",
         "position": 1,
         "document_id": "",
@@ -1337,7 +1337,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
         "completed_at": 1695312007,
         "error": null,
         "stopped_at": null
-      }],
+      },
       "doc_form": "text_model"
     }
     ```

+ 2 - 2
web/app/(commonLayout)/datasets/template/template.zh.mdx

@@ -1319,7 +1319,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
     <CodeGroup title="Response">
     ```json {{ title: 'Response' }}
     {
-      "data": [{
+      "data": {
         "id": "",
         "position": 1,
         "document_id": "",
@@ -1343,7 +1343,7 @@ import { Row, Col, Properties, Property, Heading, SubProperty, PropertyInstructi
         "completed_at": 1695312007,
         "error": null,
         "stopped_at": null
-      }],
+      },
       "doc_form": "text_model"
     }
     ```