ref:修改默认推荐模型为v3.2和r1
This commit is contained in:
@@ -1009,6 +1009,9 @@ class DefaultReplyer:
|
||||
prompt
|
||||
)
|
||||
|
||||
# 移除 content 前后的换行符和空格
|
||||
content = content.strip()
|
||||
|
||||
logger.info(f"使用 {model_name} 生成回复内容: {content}")
|
||||
return content, reasoning_content, model_name, tool_calls
|
||||
|
||||
|
||||
@@ -930,6 +930,8 @@ class PrivateReplyer:
|
||||
content, (reasoning_content, model_name, tool_calls) = await self.express_model.generate_response_async(
|
||||
prompt
|
||||
)
|
||||
|
||||
content = content.strip()
|
||||
|
||||
logger.info(f"使用 {model_name} 生成回复内容: {content}")
|
||||
return content, reasoning_content, model_name, tool_calls
|
||||
|
||||
@@ -128,9 +128,9 @@ class GetMemoryTool(BaseTool):
|
||||
content_parts = [f"问题:{question}"]
|
||||
|
||||
if memory_answer:
|
||||
content_parts.append(f"记忆仓库答案:{memory_answer}")
|
||||
content_parts.append(f"对问题'{question}',你回忆的信息是:{memory_answer}")
|
||||
else:
|
||||
content_parts.append(f"记忆仓库:对问题'{question}',没有什么印象")
|
||||
content_parts.append(f"对问题'{question}',没有什么印象")
|
||||
|
||||
if chat_answer:
|
||||
content_parts.append(f"对问题'{question}',基于聊天记录的回答:{chat_answer}")
|
||||
|
||||
Reference in New Issue
Block a user