我要曹飞一切之thinkflow创世纪

This commit is contained in:
SengokuCola
2025-03-24 00:23:17 +08:00
parent 9860ea085e
commit 6da66e74f6
9 changed files with 189 additions and 147 deletions

View File

@@ -12,7 +12,7 @@ from .chat_stream import chat_manager
from .relationship_manager import relationship_manager
from src.common.logger import get_module_logger
from src.think_flow_demo.current_mind import brain
from src.think_flow_demo.heartflow import subheartflow_manager
from src.think_flow_demo.outer_world import outer_world
logger = get_module_logger("prompt")
@@ -36,8 +36,8 @@ class PromptBuilder:
limit=global_config.MAX_CONTEXT_SIZE,
)
outer_world_info = outer_world.outer_world_info
current_mind_info = brain.current_mind
# outer_world_info = outer_world.outer_world_info
current_mind_info = subheartflow_manager.get_subheartflow(stream_id).current_mind
relation_prompt = ""
for person in who_chat_in_group:
@@ -183,7 +183,7 @@ class PromptBuilder:
prompt_check_if_response = ""
print(prompt)
# print(prompt)
return prompt, prompt_check_if_response