File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import logging
2
2
3
3
from graphrag_sdk .models .openai import OpenAiGenerativeModel
4
- from graphrag_sdk .models .gemini import GeminiGenerativeModel
4
+ # from graphrag_sdk.models.gemini import GeminiGenerativeModel
5
5
6
6
from graphrag_sdk import (
7
7
Ontology ,
@@ -193,14 +193,14 @@ def _create_kg_agent(repo_name: str):
193
193
global ontology
194
194
195
195
openapi_model = OpenAiGenerativeModel ("gpt-4o" )
196
- gemini_model = GeminiGenerativeModel ("gemini-1.5-flash-001" )
197
- gemini_model_pro = GeminiGenerativeModel ("gemini-1.5-pro" )
196
+ # gemini_model = GeminiGenerativeModel("gemini-1.5-flash-001")
197
+ # gemini_model_pro = GeminiGenerativeModel("gemini-1.5-pro")
198
198
199
199
#ontology = _define_ontology()
200
200
code_graph_kg = KnowledgeGraph (
201
201
name = repo_name ,
202
202
ontology = ontology ,
203
- model_config = KnowledgeGraphModelConfig .with_model (gemini_model ),
203
+ model_config = KnowledgeGraphModelConfig .with_model (openapi_model ),
204
204
)
205
205
206
206
return code_graph_kg .chat_session ()
You can’t perform that action at this time.
0 commit comments