-
Notifications
You must be signed in to change notification settings - Fork 1
Fix Deploy Issues #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -754,6 +754,10 @@ def graphrag_setup_endpoint(): | |
| api_key = api_keys.get("geminiKey") or config_manager.get("ai_providers.google_genai.api_key", "") | ||
| graphrag_api_keys = {"geminiKey": api_key} | ||
| provider = "gemini" # Map to GraphRAG service provider name | ||
| elif provider == "gemini": | ||
| # Support direct "gemini" provider selection from frontend | ||
| api_key = api_keys.get("geminiKey") or config_manager.get("ai_providers.google_genai.api_key", "") | ||
| graphrag_api_keys = {"geminiKey": api_key} | ||
| elif provider == "anthropic": | ||
| api_key = api_keys.get("anthropicKey") or config_manager.get("ai_providers.anthropic.api_key", "") | ||
| graphrag_api_keys = {"anthropicKey": api_key} | ||
|
|
@@ -881,6 +885,10 @@ def graphrag_change_provider_endpoint(): | |
| api_key = api_keys.get("geminiKey") or config_manager.get("ai_providers.google_genai.api_key", "") | ||
| graphrag_api_keys = {"geminiKey": api_key} | ||
| provider = "gemini" # Map to GraphRAG service provider name | ||
| elif provider == "gemini": | ||
| # Support direct "gemini" provider selection from frontend | ||
| api_key = api_keys.get("geminiKey") or config_manager.get("ai_providers.google_genai.api_key", "") | ||
| graphrag_api_keys = {"geminiKey": api_key} | ||
|
Comment on lines
+888
to
+891
|
||
| elif provider == "anthropic": | ||
| api_key = api_keys.get("anthropicKey") or config_manager.get("ai_providers.anthropic.api_key", "") | ||
| graphrag_api_keys = {"anthropicKey": api_key} | ||
|
|
@@ -1125,6 +1133,10 @@ def graphrag_endpoint(): | |
| api_key = api_keys.get("geminiKey") or config_manager.get("ai_providers.google_genai.api_key", "") | ||
| graphrag_api_keys = {"geminiKey": api_key} | ||
| provider = "gemini" # Map to GraphRAG service provider name | ||
| elif provider == "gemini": | ||
| # Support direct "gemini" provider selection from frontend | ||
| api_key = api_keys.get("geminiKey") or config_manager.get("ai_providers.google_genai.api_key", "") | ||
| graphrag_api_keys = {"geminiKey": api_key} | ||
|
Comment on lines
+1136
to
+1139
|
||
| elif provider == "anthropic": | ||
| api_key = api_keys.get("anthropicKey") or config_manager.get("ai_providers.anthropic.api_key", "") | ||
| graphrag_api_keys = {"anthropicKey": api_key} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition is identical to the existing 'google_genai' condition above it (lines 754-756). Consider consolidating these conditions using 'elif provider in ["google_genai", "gemini"]:' to avoid code duplication.