GamesAI

This plugin allows you to use AI in the game

tool

Installation command

!!MCDR plugin install games_ai

Author

Synced at

...

Last update

...

Latest version

Total downloads

212

Back to catalogue

GamesAI-v0.5.3.mcdr

Version

0.5.3

Date

May 24, 2026

Size

41.59 KiB

Downloads

4

MD5

c1e1ce968b33891c9757a03d48dd4a39

SHA256

be50892920f5e8e07a0383d481d473725cc6aa4539c1205fd616a449210379ea

MCDR Plugin Dependencies

Plugin IDRequirement
mcdreforged>=2.15.0

Python Package Requirements

Python PackageRequirement
openai
requests

Python Package Installation Command

pip install openai requests

GamesAI v0.5.3

v0.5.3

  • 修复关键的历史记录损坏 Bug:修复 history.append(response_message) 将整个消息列表错误追加为单个元素,导致第二次对话时 API 返回 HTTP 400 错误(invalid type: map, expected variant identifier)。
  • 按用户追踪工具调用计数:全局 tool_count 替换为 user_tool_counts 字典,每个用户的工具调用次数独立记录,清除历史时自动重置,解决了历史保留上限无限膨胀的问题。
  • 修复 Debug 模式下的 NameErrordebug 笔误修正为 debug_mode

v0.5.2

  • 新增 Skills 技能系统:可在 config/games_ai/skills/ 编写 Markdown 指导文件,注册于 skills.json,AI 通过内置 read_skills 工具读取,实现标准化工作流程引导。
  • 提示词支持外部文件引用(> filename.md)。
  • 改进 Python 3.14 兼容性,修复若干问题。