check high-quality dataset with empty embedding model provider (#16181)
This commit is contained in:
parent
e7572066a4
commit
3f44b690c2
2 changed files with 4 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue