mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-03 11:48:08 +08:00
fix update_by_api batch field issue (#10001)
This commit is contained in:
parent
9ebd453b87
commit
e74479717a
@ -230,7 +230,7 @@ class DocumentUpdateByFileApi(DatasetApiResource):
|
|||||||
except ProviderTokenNotInitError as ex:
|
except ProviderTokenNotInitError as ex:
|
||||||
raise ProviderNotInitializeError(ex.description)
|
raise ProviderNotInitializeError(ex.description)
|
||||||
document = documents[0]
|
document = documents[0]
|
||||||
documents_and_batch_fields = {"document": marshal(document, document_fields), "batch": batch}
|
documents_and_batch_fields = {"document": marshal(document, document_fields), "batch": document.batch}
|
||||||
return documents_and_batch_fields, 200
|
return documents_and_batch_fields, 200
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user