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: get billing info in self-hosted edition from current workspace (#1774)
zxhlyh1a5279a3ef3a
diff --git a/api/services/workspace_service.py b/api/services/workspace_service.pyindex 360eb255593..6aa7198a040 100644--- a/api/services/workspace_service.py+++ b/api/services/workspace_service.py@@ -1,3 +1,4 @@+from flask import current_appfrom flask_login import current_userfrom extensions.ext_database import dbfrom models.account import Tenant, TenantAccountJoin, TenantAccountJoinRole@@ -31,10 +32,12 @@ class WorkspaceService:).first()tenant_info['role'] = tenant_account_join.role- billing_info = BillingService.get_info(tenant_info['id'])+ edition = current_app.config['EDITION']+ if edition == 'CLOUD':+ billing_info = BillingService.get_info(tenant_info['id'])- if billing_info['can_replace_logo'] and TenantService.has_roles(tenant, [TenantAccountJoinRole.OWNER, TenantAccountJoinRole.ADMIN]):- tenant_info['custom_config'] = tenant.custom_config_dict+ if billing_info['can_replace_logo'] and TenantService.has_roles(tenant, [TenantAccountJoinRole.OWNER, TenantAccountJoinRole.ADMIN]):+ tenant_info['custom_config'] = tenant.custom_config_dict# Get providersproviders = db.session.query(Provider).filter(