mirror of
https://github.com/langgenius/dify.git
synced 2026-05-01 07:58:02 +08:00
merge new graph engine
This commit is contained in:
@ -133,6 +133,9 @@ class DocumentAddByTextApi(DatasetApiResource):
|
||||
# validate args
|
||||
DocumentService.document_create_args_validate(knowledge_config)
|
||||
|
||||
if not current_user:
|
||||
raise ValueError("current_user is required")
|
||||
|
||||
try:
|
||||
documents, batch = DocumentService.save_document_with_dataset_id(
|
||||
dataset=dataset,
|
||||
|
||||
Reference in New Issue
Block a user