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
Chore: remove dead var in `DocumentBatchIndexingEstimateApi` (#24497)
Yongtao Huangb486d72b8e52
diff --git a/api/controllers/console/datasets/datasets_document.py b/api/controllers/console/datasets/datasets_document.pyindex 1cd07a25027..8d50b0d41cb 100644--- a/api/controllers/console/datasets/datasets_document.py+++ b/api/controllers/console/datasets/datasets_document.py@@ -470,25 +470,11 @@ class DocumentBatchIndexingEstimateApi(DocumentResource):return {"tokens": 0, "total_price": 0, "currency": "USD", "total_segments": 0, "preview": []}, 200data_process_rule = documents[0].dataset_process_ruledata_process_rule_dict = data_process_rule.to_dict()- info_list = []extract_settings = []for document in documents:if document.indexing_status in {"completed", "error"}:raise DocumentAlreadyFinishedError()data_source_info = document.data_source_info_dict- # format document files info- if data_source_info and "upload_file_id" in data_source_info:- file_id = data_source_info["upload_file_id"]- info_list.append(file_id)- # format document notion info- elif (- data_source_info and "notion_workspace_id" in data_source_info and "notion_page_id" in data_source_info- ):- pages = []- page = {"page_id": data_source_info["notion_page_id"], "type": data_source_info["type"]}- pages.append(page)- notion_info = {"workspace_id": data_source_info["notion_workspace_id"], "pages": pages}- info_list.append(notion_info)if document.data_source_type == "upload_file":file_id = data_source_info["upload_file_id"]