Преглед на файлове

get dict key indexing_technique in DocumentAddByFileApi (#3615)

Co-authored-by: songqijun <songqijun@qipeng.com>
tags/0.6.4
sqj8899 преди 1 година
родител
ревизия
0a56c522eb
No account linked to committer's email address
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      api/controllers/service_api/dataset/document.py

+ 1
- 1
api/controllers/service_api/dataset/document.py Целия файл

@@ -174,7 +174,7 @@ class DocumentAddByFileApi(DatasetApiResource):

if not dataset:
raise ValueError('Dataset is not exist.')
if not dataset.indexing_technique and not args['indexing_technique']:
if not dataset.indexing_technique and not args.get('indexing_technique'):
raise ValueError('indexing_technique is required.')

# save file info

Loading…
Отказ
Запис