Skip to content

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

Python

feat: Show google_drive connector for cloud brand (#1650)

Edwin Josecc4c5d54a5dd
diff --git a/frontend/app/settings/_components/connector-cards.tsx b/frontend/app/settings/_components/connector-cards.tsx
index b8b29541c..5f0880e53 100644
--- a/frontend/app/settings/_components/connector-cards.tsx
+++ b/frontend/app/settings/_components/connector-cards.tsx
@@ -55,8 +55,7 @@ export default function ConnectorCards() {
const connectors = queryConnectors
.filter((c) => {
if (c.type === "ibm_cos" || c.type === "aws_s3") return isIbmAuthMode;
- if (isCloudBrand && (c.type === "google_drive" || c.type === "onedrive"))
- return false;
+ if (isCloudBrand && c.type === "onedrive") return false;
return true;
})
.map((c) => ({
diff --git a/frontend/components/knowledge-dropdown.tsx b/frontend/components/knowledge-dropdown.tsx
index df6e5adff..b858bcfa0 100644
--- a/frontend/components/knowledge-dropdown.tsx
+++ b/frontend/components/knowledge-dropdown.tsx
@@ -624,8 +624,7 @@ export function KnowledgeDropdown() {
const cloudConnectorItems = Object.entries(cloudConnectors)
.filter(([type, info]) => {
if (!info.available) return false;
- if (isCloudBrand && (type === "google_drive" || type === "onedrive"))
- return false;
+ if (isCloudBrand && type === "onedrive") return false;
return true;
})
.map(([type, info]) => ({