2023-04-01 16:09:07 +08:00
|
|
|
|
import config
|
2023-04-07 16:22:22 +08:00
|
|
|
|
# ---------------------------------------------自定义提示语---------------------------------------------
|
2023-04-01 16:09:07 +08:00
|
|
|
|
|
2023-04-07 16:22:22 +08:00
|
|
|
|
# 消息处理出错时向用户发送的提示信息,仅当config.py中hide_exce_info_to_user为True时生效
|
2023-04-01 16:09:07 +08:00
|
|
|
|
# 设置为空字符串时,不发送提示信息
|
2023-04-07 16:22:22 +08:00
|
|
|
|
alter_tip_message = '[bot]err:出错了,请稍后再试'
|
2023-04-01 16:09:07 +08:00
|
|
|
|
|
2023-04-07 16:22:22 +08:00
|
|
|
|
# drop策略时,超过限速均值时,丢弃的对话的提示信息,仅当config.py中rate_limitation_strategy为"drop"时生效
|
2023-04-01 16:09:07 +08:00
|
|
|
|
# 若设置为空字符串,则不发送提示信息
|
|
|
|
|
rate_limit_drop_tip = "本分钟对话次数超过限速次数,此对话被丢弃"
|
|
|
|
|
|
2023-04-15 17:33:57 +08:00
|
|
|
|
# 只允许同时处理一条消息时,新消息被丢弃时的提示信息
|
|
|
|
|
# 当config.py中的wait_last_done为False时生效
|
|
|
|
|
# 若设置为空字符串,则不发送提示信息
|
|
|
|
|
message_drop_tip = "[bot]当前有一条消息正在处理,请等待处理完成"
|
|
|
|
|
|
2024-01-12 16:48:47 +08:00
|
|
|
|
# 命令 !help帮助消息
|
2023-04-07 16:39:25 +08:00
|
|
|
|
help_message = """此机器人通过调用大型语言模型生成回复,不具有情感。
|
2023-04-01 16:09:07 +08:00
|
|
|
|
你可以用自然语言与其交流,回复的消息中[GPT]开头的为模型生成的语言,[bot]开头的为程序提示。
|
2023-04-07 16:39:25 +08:00
|
|
|
|
欢迎到github.com/RockChinQ/QChatGPT 给个star"""
|
2023-04-01 16:09:07 +08:00
|
|
|
|
|
2023-04-07 16:22:22 +08:00
|
|
|
|
# 私聊消息超时提示
|
|
|
|
|
reply_message = "[bot]err:请求超时"
|
|
|
|
|
# 群聊消息超时提示
|
|
|
|
|
replys_message = "[bot]err:请求超时"
|
2023-04-01 16:09:07 +08:00
|
|
|
|
|
2024-01-12 16:48:47 +08:00
|
|
|
|
# 命令权限不足提示
|
2023-04-07 16:22:22 +08:00
|
|
|
|
command_admin_message = "[bot]err:权限不足: "
|
2024-01-12 16:48:47 +08:00
|
|
|
|
# 命令无效提示
|
|
|
|
|
command_err_message = "[bot]err:命令不存在:"
|
2023-04-01 18:29:24 +08:00
|
|
|
|
|
|
|
|
|
# 会话重置提示
|
2023-06-08 13:43:33 +08:00
|
|
|
|
command_reset_message = "[bot]会话已重置"
|
|
|
|
|
command_reset_name_message = "[bot]会话已重置,使用场景预设:"
|
2023-06-08 13:20:33 +08:00
|
|
|
|
|
|
|
|
|
# 会话自动重置时的提示
|
2023-06-08 13:45:54 +08:00
|
|
|
|
session_auto_reset_message = "[bot]会话token超限,已自动重置,请重新发送消息"
|