add dataset info in response (#21406)

This commit is contained in:
Jyong 2025-06-24 11:13:56 +08:00 committed by GitHub
parent 2467bd738a
commit 973b3854b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -297,7 +297,7 @@ class DatasetDocumentListApi(Resource):
except ModelCurrentlyNotSupportError:
raise ProviderModelCurrentlyNotSupportError()
return {"documents": documents, "batch": batch}
return {"dataset": dataset, "documents": documents, "batch": batch}
@setup_required
@login_required