Переглянути джерело

fix: datasets documents update-by-file api missing assign field 'indexing_technique' internally (#14243)

tags/1.0.0
L8ng 8 місяці тому
джерело
коміт
b15ff4eb8c
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 4 додано та 0 видалено
  1. 4
    0
      api/controllers/service_api/dataset/document.py

+ 4
- 0
api/controllers/service_api/dataset/document.py Переглянути файл

@@ -336,6 +336,10 @@ class DocumentUpdateByFileApi(DatasetApiResource):

if not dataset:
raise ValueError("Dataset is not exist.")

# indexing_technique is already set in dataset since this is an update
args["indexing_technique"] = dataset.indexing_technique

if "file" in request.files:
# save file info
file = request.files["file"]

Завантаження…
Відмінити
Зберегти