mirror of
https://github.com/ddaodan/minechatgpt.git
synced 2026-06-21 21:45:28 +08:00
- 新增 RequestCoordinator,请求统一走限流、冷却、排队与派发流程 - 新增 token 估算与 UsageTracker,并接入 API usage 解析(prompt/completion/total) - 新增上下文 token 预算裁剪与可选自动总结能力 - 重构命令调用链至协调器,新增 `/chatgpt stats [reset]`,同步补全权限与补全提示 - 新增 ConfigFileUpdater:为 `config.yml` 与 `lang/*.yml` 自动补齐缺失项,保留用户已有配置与注释,并生成备份 - 修复自动补全插入顺序/空行/注释归属问题,避免重复块与空行膨胀 - 优化 `config.yml` 注释说明:保持原意,仅补充更清晰的中英文细节说明
37 lines
1007 B
YAML
37 lines
1007 B
YAML
name: MineChatGPT
|
|
version: '${version}'
|
|
main: com.ddaodan.MineChatGPT.Main
|
|
author: ddaodan
|
|
folia-supported: true
|
|
description: A Spigot plugin for interacting with ChatGPT
|
|
|
|
commands:
|
|
chatgpt:
|
|
description: Interact with ChatGPT
|
|
usage: /chatgpt <text>
|
|
permissions:
|
|
minechatgpt.use:
|
|
description: Allows using the /chatgpt command to interact with AI
|
|
default: true
|
|
minechatgpt.reload:
|
|
description: Allows reloading the configuration file
|
|
default: op
|
|
minechatgpt.model:
|
|
description: Allows switching models
|
|
default: op
|
|
minechatgpt.modellist:
|
|
description: Allows listing available models
|
|
default: op
|
|
minechatgpt.context:
|
|
description: Allows toggling context mode
|
|
default: true
|
|
minechatgpt.clear:
|
|
description: Allows clearing conversation history
|
|
default: true
|
|
minechatgpt.character:
|
|
description: Allows switching characters
|
|
default: true
|
|
minechatgpt.stats:
|
|
description: Allows viewing/resetting usage statistics
|
|
default: op
|