mirror of https://github.com/Mai-with-u/MaiBot.git
调整温度参数至0.6,并更新主题识别提示信息以增强用户体验
parent
3b8f9df2a8
commit
f776ffa053
|
|
@ -21,7 +21,7 @@ class ResponseGenerator:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.model_r1 = LLM_request(
|
self.model_r1 = LLM_request(
|
||||||
model=global_config.llm_reasoning,
|
model=global_config.llm_reasoning,
|
||||||
temperature=0.7,
|
temperature=0.6,
|
||||||
max_tokens=1000,
|
max_tokens=1000,
|
||||||
stream=True,
|
stream=True,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class TopicIdentifier:
|
||||||
prompt = f"""判断这条消息的主题,如果没有明显主题请回复"无主题",要求:
|
prompt = f"""判断这条消息的主题,如果没有明显主题请回复"无主题",要求:
|
||||||
1. 主题通常2-4个字,必须简短,要求精准概括,不要太具体。
|
1. 主题通常2-4个字,必须简短,要求精准概括,不要太具体。
|
||||||
2. 建议给出多个主题,之间用英文逗号分割。只输出主题本身就好,不要有前后缀。
|
2. 建议给出多个主题,之间用英文逗号分割。只输出主题本身就好,不要有前后缀。
|
||||||
|
请注意:如果没有明显主题请只回复"无主题"
|
||||||
消息内容:{text}"""
|
消息内容:{text}"""
|
||||||
|
|
||||||
# 使用 LLM_request 类进行请求
|
# 使用 LLM_request 类进行请求
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue