mirror of https://github.com/Mai-with-u/MaiBot.git
修改遗漏
parent
b8624dd195
commit
0528586ad2
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue