Skip to content

Commit 6d0ec9d

Browse files
authored
fix: [Interface Document] The upload file interface is missing parameters (#4774)
1 parent f455f2d commit 6d0ec9d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

apps/knowledge/api/file.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,17 @@ def get_request():
1515
'properties': {
1616
'file': {
1717
'type': 'string',
18-
'format': 'binary' # Tells Swagger it's a file
18+
'format': 'binary',
19+
'description': '要上传的文件'
20+
21+
},
22+
"source_id": {
23+
'type': 'string',
24+
'description': '资源id 如果source_type为[TEMPORARY_30_MINUTE,TEMPORARY_120_MINUTE,TEMPORARY_1_DAY,SYSTEM] 其他的需要为对应资源的id'
25+
},
26+
"source_type": {
27+
'type': 'string',
28+
'description': '资源类型[KNOWLEDGE,APPLICATION,TOOL,DOCUMENT,CHAT,SYSTEM,TEMPORARY_30_MINUTE,TEMPORARY_120_MINUTE,TEMPORARY_1_DAY]'
1929
}
2030
}
2131
}

0 commit comments

Comments
 (0)