mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 17:22:38 +02:00
fix(connectors): allow Gmail and Calendar live connectors to index
This commit is contained in:
parent
5bdf8a0c31
commit
23a853b18e
1 changed files with 10 additions and 1 deletions
|
|
@ -809,7 +809,16 @@ async def index_connector_content(
|
|||
|
||||
from app.services.mcp_oauth.registry import LIVE_CONNECTOR_TYPES
|
||||
|
||||
if connector.connector_type in LIVE_CONNECTOR_TYPES:
|
||||
indexable_live_connector_types = {
|
||||
SearchSourceConnectorType.GOOGLE_CALENDAR_CONNECTOR,
|
||||
SearchSourceConnectorType.COMPOSIO_GOOGLE_CALENDAR_CONNECTOR,
|
||||
SearchSourceConnectorType.GOOGLE_GMAIL_CONNECTOR,
|
||||
SearchSourceConnectorType.COMPOSIO_GMAIL_CONNECTOR,
|
||||
}
|
||||
if (
|
||||
connector.connector_type in LIVE_CONNECTOR_TYPES
|
||||
and connector.connector_type not in indexable_live_connector_types
|
||||
):
|
||||
return {
|
||||
"message": (
|
||||
f"{connector.connector_type.value} uses real-time agent tools; "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue