chore: 添加开关和提示语配置项

This commit is contained in:
Rock Chin
2023-06-08 13:20:33 +08:00
parent 67d1ca8a65
commit 2f2159239a
2 changed files with 7 additions and 0 deletions

View File

@@ -195,6 +195,10 @@ encourage_sponsor_at_start = True
# 注意较大的prompt_submit_length会导致OpenAI账户额度消耗更快
prompt_submit_length = 2048
# 是否在token超限报错时自动重置会话
# 可在tips.py中编辑提示语
auto_reset = True
# OpenAI补全API的参数
# 请在下方填写模型,程序自动选择接口
# 现已支持的模型有:

View File

@@ -32,3 +32,6 @@ command_err_message = "[bot]err:指令不存在:"
# 会话重置提示
command_reset_message = "[bot]:会话已重置"
command_reset_name_message = "[bot]:会话已重置,使用场景预设:"
# 会话自动重置时的提示
session_auto_reset_message = "[bot]:会话token超限已自动重置"