Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/create_context_graph/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,11 @@ def main(
try:
conn = get_connector(conn_id)
creds = config.saas_credentials.get(conn_id, {})
# Inject API keys so connectors can use them for enrichment
if config.anthropic_api_key:
creds.setdefault("anthropic_api_key", config.anthropic_api_key)
if config.openai_api_key:
creds.setdefault("openai_api_key", config.openai_api_key)
console.print(f" Connecting to {conn.service_name}...")
conn.authenticate(creds)
console.print(f" Fetching data from {conn.service_name}...")
Expand Down
15 changes: 15 additions & 0 deletions src/create_context_graph/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,21 @@
}


# ---------------------------------------------------------------------------
# Reddit connector defaults
# ---------------------------------------------------------------------------

REDDIT_DEFAULT_SUBREDDITS: list[str] = [
"neo4j",
]

REDDIT_DEFAULT_KEYWORDS: list[str] = [
"rag",
"agentic ai",
"knowledge graph",
]


class ProjectConfig(BaseModel):
"""All configuration collected from the wizard or CLI flags."""

Expand Down
1 change: 1 addition & 0 deletions src/create_context_graph/connectors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,5 @@ def merge_connector_results(results: list[NormalizedData]) -> NormalizedData:
from create_context_graph.connectors.claude_code_connector import ClaudeCodeConnector # noqa: E402, F401
from create_context_graph.connectors.claude_ai_connector import ClaudeAIConnector # noqa: E402, F401
from create_context_graph.connectors.chatgpt_connector import ChatGPTConnector # noqa: E402, F401
from create_context_graph.connectors.reddit_connector import RedditConnector # noqa: E402, F401
from create_context_graph.connectors.local_file_connector import LocalFileConnector # noqa: E402, F401
Comment thread
SquireGraphs marked this conversation as resolved.
Loading