Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

fix: add any_configured() to ProvidersConfig to prevent onboarding 500 (#1177) (#1226)

Lucas Oliveira0425ecc197b4
diff --git a/src/config/config_manager.py b/src/config/config_manager.py
index 37fe089f9..fea87ba43 100644
--- a/src/config/config_manager.py
+++ b/src/config/config_manager.py
@@ -49,6 +49,10 @@ class ProvidersConfig:
watsonx: WatsonXConfig
ollama: OllamaConfig
+ def any_configured(self) -> bool:
+ """Return True if at least one provider is marked as configured."""
+ return any(p.configured for p in (self.openai, self.anthropic, self.watsonx, self.ollama))
+
def get_provider_config(self, provider: str):
"""Get configuration for a specific provider."""
provider_lower = provider.lower()