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
add a config to disable provider config validation (#85)
killpandac6ba67a7701d
diff --git a/api/config.py b/api/config.pyindex 36fcb3450f9..1e6000c8ae8 100644--- a/api/config.py+++ b/api/config.py@@ -46,6 +46,7 @@ DEFAULTS = {'CELERY_BACKEND': 'database','PDF_PREVIEW': 'True','LOG_LEVEL': 'INFO',+ 'DISABLE_PROVIDER_CONFIG_VALIDATION': 'False',}@@ -176,6 +177,9 @@ class Config:# hosted provider credentialsself.OPENAI_API_KEY = get_env('OPENAI_API_KEY')+ # By default it is False+ # You could disable it for compatibility with certain OpenAPI providers+ self.DISABLE_PROVIDER_CONFIG_VALIDATION = get_bool_env('DISABLE_PROVIDER_CONFIG_VALIDATION')class CloudEditionConfig(Config):diff --git a/api/services/provider_service.py b/api/services/provider_service.pyindex 7f6c7c93030..39ee8353c0d 100644--- a/api/services/provider_service.py+++ b/api/services/provider_service.py@@ -62,6 +62,8 @@ class ProviderService:@staticmethoddef validate_provider_configs(tenant, provider_name: ProviderName, configs: Union[dict | str]):+ if current_app.config['DISABLE_PROVIDER_CONFIG_VALIDATION']:+ returnllm_provider_service = LLMProviderService(tenant.id, provider_name.value)return llm_provider_service.config_validate(configs)