添加连续对话 调试模式

This commit is contained in:
2024-07-21 14:18:47 +08:00
parent b8aaaaf6a3
commit 0944aa1a85
9 changed files with 190 additions and 9 deletions

View File

@@ -23,14 +23,23 @@ models:
# And more...
# The default model to use
default_model: "gpt-3.5-turbo"
conversation:
max_history_size: 10
context_enabled: false
# Message settings
messages:
reload: "&aConfiguration reloaded successfully!"
clear: "Conversation history has been cleared!"
help: "&e===== MineChatGPT Help ====="
help_ask: "&e/chatgpt <text> - Ask ChatGPT a question."
help_reload: "&e/chatgpt reload - Reload the configuration file."
help_model: "&e/chatgpt model <model_name> - Switch to a different model."
help_modellist: "&e/chatgpt modellist - List available models."
help_context: "/chatgpt context - Toggle context mode."
help_clear: "/chatgpt clear - Clear conversation history."
context_toggle: "Context is now %s."
context_toggle_enabled: "enabled"
context_toggle_disabled: "disabled"
current_model_info: "&eCurrent model: %s. Use /chatgpt model <model_name> to switch models."
model_switch: "&aModel switched to %s"
chatgpt_error: "&cFailed to contact ChatGPT."
@@ -39,5 +48,7 @@ messages:
invalid_model: "&cInvalid model. Use /chatgpt modellist to see available models."
available_models: "&eAvailable models:"
no_permission: "&cYou do not have permission to use this command. Required permission: %s"
# If you don't know what this is, don't change it
debug: false
# DO NOT EDIT!!!!!
version: 2.2

View File

@@ -23,14 +23,23 @@ models:
# 以及更多...
# 默认使用的模型
default_model: "gpt-3.5-turbo"
conversation:
max_history_size: 10
context_enabled: false
# 消息相关设置
messages:
reload: "&a已重新加载配置文件"
clear: "&a对话历史已清空"
help: "&e===== MineChatGPT 帮助 ====="
help_ask: "&e/chatgpt <text> - 向ChatGPT提问"
help_reload: "&e/chatgpt reload - 重新加载配置文件"
help_model: "&e/chatgpt model <model_name> - 切换至其他模型"
help_modellist: "&e/chatgpt modellist - 可用的模型列表"
help_context: "&e/chatgpt context - 切换连续对话模式"
help_clear: "/chatgpt clear - 清空对话历史"
context_toggle: "&a连续对话模式已%s。"
context_toggle_enabled: "开启"
context_toggle_disabled: "关闭"
current_model_info: "&e当前模型%s输入 /chatgpt model <model_name> 来切换模型。"
model_switch: "&a已切换至模型 %s"
chatgpt_error: "&c无法联系ChatGPT。"
@@ -39,5 +48,7 @@ messages:
invalid_model: "&c模型无效。使用 /chatgpt modellist 查看可用模型。"
available_models: "&e可用模型列表"
no_permission: "&c你没有权限使用这个指令。需要的权限%s"
# 如果你不知道这是什么,请不要动
debug: false
# 不要动!!!!!
version: 2.2

View File

@@ -20,4 +20,10 @@ permissions:
default: op
minechatgpt.modellist:
description: Allows listing available models
default: op
default: op
minechatgpt.context:
description: Allows toggling context mode
default: true
chatgpt.clear:
description: Allows clearing conversation history
default: true