Skip to content

Commit 51fc834

Browse files
committed
use openai
1 parent c3d5c7a commit 51fc834

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

code_graph/llm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22

33
from graphrag_sdk.models.openai import OpenAiGenerativeModel
4-
from graphrag_sdk.models.gemini import GeminiGenerativeModel
4+
#from graphrag_sdk.models.gemini import GeminiGenerativeModel
55

66
from graphrag_sdk import (
77
Ontology,
@@ -193,14 +193,14 @@ def _create_kg_agent(repo_name: str):
193193
global ontology
194194

195195
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")
198198

199199
#ontology = _define_ontology()
200200
code_graph_kg = KnowledgeGraph(
201201
name=repo_name,
202202
ontology=ontology,
203-
model_config=KnowledgeGraphModelConfig.with_model(gemini_model),
203+
model_config=KnowledgeGraphModelConfig.with_model(openapi_model),
204204
)
205205

206206
return code_graph_kg.chat_session()

0 commit comments

Comments
 (0)