From 3d3c0494abe8aaa6aaa6a92a7d9a5e0927127f8d Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Tue, 27 Jan 2026 14:47:25 +0800 Subject: [PATCH] Update --- open-api/service-api.json | 85 +++++++++++++++++++++++++++++---------- 1 file changed, 63 insertions(+), 22 deletions(-) diff --git a/open-api/service-api.json b/open-api/service-api.json index cff5668c23..8349fb057e 100644 --- a/open-api/service-api.json +++ b/open-api/service-api.json @@ -1742,7 +1742,7 @@ "operationId": "get_segment", "parameters": [ { - "name": "dataset_id", + "name": "segment_id", "in": "path", "required": true, "schema": { @@ -1758,7 +1758,7 @@ } }, { - "name": "segment_id", + "name": "dataset_id", "in": "path", "required": true, "schema": { @@ -4109,26 +4109,6 @@ } } }, - "TagUpdatePayload": { - "title": "TagUpdatePayload", - "required": [ - "name", - "tag_id" - ], - "type": "object", - "properties": { - "name": { - "title": "Name", - "maxLength": 50, - "minLength": 1, - "type": "string" - }, - "tag_id": { - "title": "Tag Id", - "type": "string" - } - } - }, "TagDeletePayload": { "title": "TagDeletePayload", "required": [ @@ -4157,6 +4137,26 @@ } } }, + "TagUpdatePayload": { + "title": "TagUpdatePayload", + "required": [ + "name", + "tag_id" + ], + "type": "object", + "properties": { + "name": { + "title": "Name", + "maxLength": 50, + "minLength": 1, + "type": "string" + }, + "tag_id": { + "title": "Tag Id", + "type": "string" + } + } + }, "DataSetTag": { "type": "object", "properties": { @@ -4466,6 +4466,16 @@ } } }, + "RetrievalMethod": { + "title": "RetrievalMethod", + "type": "string", + "enum": [ + "semantic_search", + "full_text_search", + "hybrid_search", + "keyword_search" + ] + }, "ProcessRule": { "title": "ProcessRule", "required": [ @@ -4601,6 +4611,37 @@ "default": false } } + }, + "SegmentUpdateArgs": { + "title": "SegmentUpdateArgs", + "type": "object", + "properties": { + "content": { + "title": "Content", + "type": "object" + }, + "answer": { + "title": "Answer", + "type": "object" + }, + "keywords": { + "title": "Keywords", + "type": "object" + }, + "regenerate_child_chunks": { + "title": "Regenerate Child Chunks", + "type": "boolean", + "default": false + }, + "enabled": { + "title": "Enabled", + "type": "object" + }, + "attachment_ids": { + "title": "Attachment Ids", + "type": "object" + } + } } }, "responses": {