Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: remove duplicated code (#24893)
jiangbo721e048588a8858
diff --git a/api/controllers/console/datasets/datasets_document.py b/api/controllers/console/datasets/datasets_document.pyindex 8d50b0d41cb..22bb81f9e32 100644--- a/api/controllers/console/datasets/datasets_document.py+++ b/api/controllers/console/datasets/datasets_document.py@@ -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: