better:统计现在统计模型名,限制思考长度

This commit is contained in:
SengokuCola
2025-10-25 21:31:02 +08:00
parent ae1f509cdb
commit ea5d08ba54
3 changed files with 8 additions and 3 deletions

View File

@@ -134,6 +134,11 @@ class DefaultReplyer:
try:
content, reasoning_content, model_name, tool_call = await self.llm_generate_content(prompt)
logger.debug(f"replyer生成内容: {content}")
logger.info(f"replyer生成内容: {content}")
logger.info(f"replyer生成推理: {reasoning_content}")
logger.info(f"replyer生成模型: {model_name}")
llm_response.content = content
llm_response.reasoning = reasoning_content
llm_response.model = model_name

View File

@@ -26,7 +26,7 @@ def init_replyer_prompt():
尽量简短一些。{keywords_reaction_prompt}请注意把握聊天内容,不要回复的太有条理,可以有个性。
{reply_style}
请注意不要输出多余内容(包括前后缀,冒号和引号,括号,表情等),只输出一句回复内容就好。
{moderation_prompt}不要输出多余内容(包括前后缀冒号和引号括号表情包at或 @等 )。
{moderation_prompt}不要输出多余内容(包括前后缀冒号和引号括号表情包at或 @等 )。请不要思考太长
现在,你说:""",
"replyer_prompt",
)