check high-quality dataset with empty embedding model provider (#16181)

This commit is contained in:
Jyong
2025-03-19 15:16:05 +08:00
committed by GitHub
parent e7572066a4
commit 3f44b690c2
2 changed files with 4 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ class DatasetListApi(Resource):
data = marshal(datasets, dataset_detail_fields)
for item in data:
# convert embedding_model_provider to plugin standard format
if item["indexing_technique"] == "high_quality":
if item["indexing_technique"] == "high_quality" and item["embedding_model_provider"]:
item["embedding_model_provider"] = str(ModelProviderID(item["embedding_model_provider"]))
item_model = f"{item['embedding_model']}:{item['embedding_model_provider']}"
if item_model in model_names: