Skip to content

Commit 7a55d72

Browse files
authored
Update llm.py
specify host, port, username and password for KG.
1 parent c8a217b commit 7a55d72

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/llm.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import logging
23

34
from graphrag_sdk.models.openai import OpenAiGenerativeModel
@@ -201,6 +202,10 @@ def _create_kg_agent(repo_name: str):
201202
name=repo_name,
202203
ontology=ontology,
203204
model_config=KnowledgeGraphModelConfig.with_model(openapi_model),
205+
host=os.getenv('FALKORDB_HOST', 'localhost'),
206+
port=os.getenv('FALKORDB_PORT', 6379),
207+
username=os.getenv('FALKORDB_USERNAME', None),
208+
password=os.getenv('FALKORDB_PASSWORD', None),
204209
)
205210

206211
return code_graph_kg.chat_session()

0 commit comments

Comments
 (0)