Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

For no auth provider, list models will return empty (#19827)

Jin Haiec0902370ecc
diff --git a/internal/handler/providers.go b/internal/handler/providers.go
index d645357e08..6b42dd7864 100644
--- a/internal/handler/providers.go
+++ b/internal/handler/providers.go
@@ -178,7 +178,7 @@ func (h *ProviderHandler) ListModels(c *gin.Context) {
}
}
- canFetchRemote := apiKey != "" && baseURL != ""
+ canFetchRemote := baseURL != ""
if bedrockProvider {
// Bedrock's existing SigV4 modes keep using the static catalog. Only
// API-key auth needs a live catalog scoped to the supplied credential.