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

pull/14273/head
L8ng 12 months ago committed by GitHub
parent 7790214620
commit b15ff4eb8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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"]

Loading…
Cancel
Save