fix kb permission (#15199)
Signed-off-by: kenwoodjw <blackxin55@gmail.com> Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
This commit is contained in:
parent
9b2a9260ef
commit
adda049265
2 changed files with 72 additions and 24 deletions
|
|
@ -283,7 +283,11 @@ class DatasetApi(Resource):
|
|||
data = request.get_json()
|
||||
|
||||
# check embedding model setting
|
||||
if data.get("indexing_technique") == "high_quality":
|
||||
if (
|
||||
data.get("indexing_technique") == "high_quality"
|
||||
and data.get("embedding_model_provider") is not None
|
||||
and data.get("embedding_model") is not None
|
||||
):
|
||||
DatasetService.check_embedding_model_setting(
|
||||
dataset.tenant_id, data.get("embedding_model_provider"), data.get("embedding_model")
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue