fix:修复空points问题
This commit is contained in:
@@ -20,9 +20,12 @@ logger = get_logger("processor")
|
||||
def init_prompt():
|
||||
relationship_prompt = """
|
||||
{name_block}
|
||||
你是一个AI,但是你伪装成了一个人类,你不想让别人知道你是一个AI
|
||||
|
||||
你和别人的关系信息是,请从这些信息中提取出你和别人的关系的原文:
|
||||
{relation_prompt}
|
||||
请只从上面这些信息中提取出。
|
||||
|
||||
|
||||
现在是{time_now},你正在上网,和qq群里的网友们聊天,以下是正在进行的聊天内容:
|
||||
{chat_observe_info}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ from src.chat.utils.timer_calculator import Timer
|
||||
from src.common.logger_manager import get_logger
|
||||
from src.chat.utils.info_catcher import info_catcher_manager
|
||||
from src.person_info.person_info import person_info_manager
|
||||
from src.chat.utils.utils import process_llm_response
|
||||
|
||||
|
||||
logger = get_logger("normal_chat_response")
|
||||
@@ -57,7 +58,7 @@ class NormalChatGenerator:
|
||||
|
||||
if model_response:
|
||||
logger.debug(f"{global_config.bot.nickname}的原始回复是:{model_response}")
|
||||
model_response = await self.process_llm_response(model_response)
|
||||
model_response = process_llm_response(model_response)
|
||||
|
||||
return model_response
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user