修改遗漏

pull/24/head
NepPure 2025-03-02 11:25:48 +08:00
parent b8624dd195
commit 0528586ad2
2 changed files with 13 additions and 6 deletions

View File

@ -331,9 +331,12 @@ class ReasoningGUI:
def main(): def main():
"""主函数""" """主函数"""
Database.initialize( Database.initialize(
"127.0.0.1", host= os.getenv("MONGODB_HOST"),
27017, port= int(os.getenv("MONGODB_PORT")),
"MegBot" db_name= os.getenv("DATABASE_NAME"),
username= os.getenv("MONGODB_USERNAME"),
password= os.getenv("MONGODB_PASSWORD"),
auth_source=os.getenv("MONGODB_AUTH_SOURCE")
) )
app = ReasoningGUI() app = ReasoningGUI()

View File

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import os
import jieba import jieba
from .llm_module import LLMModel from .llm_module import LLMModel
import networkx as nx import networkx as nx
@ -263,9 +264,12 @@ def topic_what(text, topic):
start_time = time.time() start_time = time.time()
Database.initialize( Database.initialize(
global_config.MONGODB_HOST, host= os.getenv("MONGODB_HOST"),
global_config.MONGODB_PORT, port= int(os.getenv("MONGODB_PORT")),
global_config.DATABASE_NAME db_name= os.getenv("DATABASE_NAME"),
username= os.getenv("MONGODB_USERNAME"),
password= os.getenv("MONGODB_PASSWORD"),
auth_source=os.getenv("MONGODB_AUTH_SOURCE")
) )
#创建记忆图 #创建记忆图
memory_graph = Memory_graph() memory_graph = Memory_graph()