Skip to content

armgit / dify

Public Imported from GitHub
0

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.

Chore: remove redundant tenant lookup in APIBasedExtensionAPI.post (#27067)

Yongtao Huang35e24d4d1465
diff --git a/api/controllers/console/extension.py b/api/controllers/console/extension.py
index f77996eb6a3..e5b7611c449 100644
--- a/api/controllers/console/extension.py
+++ b/api/controllers/console/extension.py
@@ -67,7 +67,6 @@ class APIBasedExtensionAPI(Resource):
@account_initialization_required
@marshal_with(api_based_extension_fields)
def post(self):
- _, current_tenant_id = current_account_with_tenant()
parser = reqparse.RequestParser()
parser.add_argument("name", type=str, required=True, location="json")
parser.add_argument("api_endpoint", type=str, required=True, location="json")