Skip to content

Commit 6dcfb43

Browse files
Ais1onclaude
authored andcommitted
fix: 添加 sync_type 参数到 Web 知识库同步接口文档
修复 Issue #5081:Web 知识库同步接口文档缺少 sync_type 参数, 导致用户不知道需要传该参数。添加 sync_type 为必需 query 参数, 可选值 replace(替换同步) 或 complete(完整同步)。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 31bc15c commit 6dcfb43

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/knowledge/api/knowledge.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ def get_parameters():
221221
location='path',
222222
required=True,
223223
),
224+
OpenApiParameter(
225+
name="sync_type",
226+
description="同步类型 (replace: 替换同步, complete: 完整同步)",
227+
type=OpenApiTypes.STR,
228+
location='query',
229+
required=True,
230+
),
224231
]
225232

226233
@staticmethod

0 commit comments

Comments
 (0)