Selaa lähdekoodia

fix: remove duplicated code (#24893)

tags/1.8.1
jiangbo721 2 kuukautta sitten
vanhempi
commit
e048588a88
No account linked to committer's email address
1 muutettua tiedostoa jossa 0 lisäystä ja 3 poistoa
  1. 0
    3
      api/controllers/console/datasets/datasets_document.py

+ 0
- 3
api/controllers/console/datasets/datasets_document.py Näytä tiedosto

@@ -354,9 +354,6 @@ class DatasetInitApi(Resource):
parser.add_argument("embedding_model_provider", type=str, required=False, nullable=True, location="json")
args = parser.parse_args()

# The role of the current user in the ta table must be admin, owner, or editor, or dataset_operator
if not current_user.is_dataset_editor:
raise Forbidden()
knowledge_config = KnowledgeConfig(**args)
if knowledge_config.indexing_technique == "high_quality":
if knowledge_config.embedding_model is None or knowledge_config.embedding_model_provider is None:

Loading…
Peruuta
Tallenna