Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion apps/knowledge/api/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ def get_request():
'properties': {
'file': {
'type': 'string',
'format': 'binary' # Tells Swagger it's a file
'format': 'binary',
'description': '要上传的文件'

},
"source_id": {
'type': 'string',
'description': '资源id 如果source_type为[TEMPORARY_30_MINUTE,TEMPORARY_120_MINUTE,TEMPORARY_1_DAY,SYSTEM] 其他的需要为对应资源的id'
},
"source_type": {
'type': 'string',
'description': '资源类型[KNOWLEDGE,APPLICATION,TOOL,DOCUMENT,CHAT,SYSTEM,TEMPORARY_30_MINUTE,TEMPORARY_120_MINUTE,TEMPORARY_1_DAY]'
}
}
}
Expand Down