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
support workspace billing info (#15510)
Jyongda01b460fe7b
diff --git a/api/controllers/console/workspace/workspace.py b/api/controllers/console/workspace/workspace.pyindex 0f99bf62e3c..eb12ec77d8b 100644--- a/api/controllers/console/workspace/workspace.py+++ b/api/controllers/console/workspace/workspace.py@@ -26,6 +26,7 @@ from libs.helper import TimestampFieldfrom libs.login import login_requiredfrom models.account import Tenant, TenantStatusfrom services.account_service import TenantService+from services.feature_service import FeatureServicefrom services.file_service import FileServicefrom services.workspace_service import WorkspaceService@@ -68,6 +69,11 @@ class TenantListApi(Resource):tenants = TenantService.get_join_tenants(current_user)for tenant in tenants:+ features = FeatureService.get_features(tenant.id)+ if features.billing.enabled:+ tenant.plan = features.billing.subscription.plan+ else:+ tenant.plan = "sandbox"if tenant.id == current_user.current_tenant_id:tenant.current = True # Set current=True for current tenantreturn {"workspaces": marshal(tenants, tenants_fields)}, 200