瀏覽代碼

fix: external dataset missing score_threshold_enabled (#10943)

cooper.wu 5 月之前
父節點
當前提交
01014a6a84
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      api/fields/dataset_fields.py

+ 1 - 0
api/fields/dataset_fields.py

@@ -41,6 +41,7 @@ dataset_retrieval_model_fields = {
 external_retrieval_model_fields = {
     "top_k": fields.Integer,
     "score_threshold": fields.Float,
+    "score_threshold_enabled": fields.Boolean,
 }
 
 tag_fields = {"id": fields.String, "name": fields.String, "type": fields.String}