- 添加角色功能
- 移除prompt功能
This commit is contained in:
2024-08-27 17:24:14 +08:00
parent 6901130708
commit ea0466947c
9 changed files with 115 additions and 35 deletions

View File

@@ -24,30 +24,40 @@ models:
# And more...
# The default model to use
default_model: "gpt-3.5-turbo"
# Conversation setting
conversation:
# Continuous conversation switch
context_enabled: false
# Maximum number of historical records retained
max_history_size: 10
prompt: "You are a helpful assistant."
# Characters setting
characters:
# Format:
# Character Name: "Character Prompt"
ChatGPT: "You are a helpful assistant."
# Message settings
messages:
reload: "&aConfiguration reloaded successfully!"
clear: "Conversation history has been cleared!"
clear: "&aConversation 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"
help_context: "&e/chatgpt context - Toggle context mode."
help_clear: "&e/chatgpt clear - Clear conversation history."
help_character: "&e/chatgpt character [character_name] - List or switch to a character."
context_toggle: "&eContext is now %s."
context_toggle_enabled: "&aenabled"
context_toggle_disabled: "&cdisabled"
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."
chatgpt_response: "&bChatGPT: %s"
chatgpt_response: "&b%s: %s"
question: "&bYou: %s"
character_switched: "&aSwitched to character: %s"
available_characters: "&eAvailable characters:"
invalid_character: "&cInvalid character. Use /chatgpt character to list available characters."
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"

View File

@@ -24,11 +24,17 @@ models:
# 以及更多...
# 默认使用的模型
default_model: "gpt-3.5-turbo"
# 连续对话设置
conversation:
# 连续对话开关
context_enabled: false
# 最大历史记录保留数量
max_history_size: 10
prompt: "You are a helpful assistant.use Chinese."
# 角色设置
characters:
# 格式:
# 角色名称: "角色提示词"
ChatGPT: "You are a helpful assistant."
# 消息相关设置
messages:
reload: "&a已重新加载配置文件"
@@ -39,15 +45,19 @@ messages:
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: "关闭"
help_clear: "&e/chatgpt clear - 清空对话历史"
help_character: "&e/chatgpt character [character_name] - 列出或切换角色"
context_toggle: "&e连续对话模式已%s。"
context_toggle_enabled: "&a开启"
context_toggle_disabled: "&c关闭"
current_model_info: "&e当前模型%s输入 /chatgpt model <model_name> 来切换模型。"
model_switch: "&a已切换至模型 %s"
chatgpt_error: "&c无法联系ChatGPT。"
chatgpt_response: "&bChatGPT: %s"
chatgpt_response: "&b%s: %s"
question: "&b你: %s"
character_switched: "&a已切换至角色 %s"
available_characters: "&e可用的角色列表"
invalid_character: "&c无效的角色。使用 /chatgpt character 查看所有可用的角色。"
invalid_model: "&c模型无效。使用 /chatgpt modellist 查看可用模型。"
available_models: "&e可用模型列表"
no_permission: "&c你没有权限使用这个指令。需要的权限%s"

View File

@@ -27,4 +27,7 @@ permissions:
default: true
minechatgpt.clear:
description: Allows clearing conversation history
default: true
minechatgpt.character:
description: Allows switching characters
default: true