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

283

Back to catalogue

GamesAI-v0.5.4.mcdr

Version

0.5.4

Date

June 5, 2026

Size

43.34 KiB

Downloads

3

MD5

3592c4fc9a40ff7ca077ab0cc6d58328

SHA256

eebc1bd38669bb57974fffccab5cd45b27d8faff9ae54d846aa916df7a97f410

MCDR Plugin Dependencies

Plugin IDRequirement
mcdreforged>=2.15.0

Python Package Requirements

Python PackageRequirement
openai
requests

Python Package Installation Command

pip install openai requests

🐛 Bug Fixes

  • Fixed history trimming causing API errors: After many consecutive conversations with tool calls, the plugin could send malformed messages to the API, resulting in HTTP 400 errors. History is now trimmed safely without breaking message structure.
  • Fixed Pydantic compatibility issue: Resolved a crash that occurred when the history trimming function encountered API response objects.

🐛 问题修复

  • 修复历史裁剪导致 API 报错:连续多次带工具调用的对话后,插件可能向 API 发送格式错误的消息,导致 HTTP 400 错误。现改为安全裁剪,不再破坏消息结构。
  • 修复 Pydantic 兼容性问题:解决了历史裁剪函数遇到 API 响应对象时发生崩溃的问题。

🐛 問題修復

  • 修復歷史裁剪導致 API 報錯:連續多次帶工具呼叫的對話後,插件可能向 API 傳送格式錯誤的訊息,導致 HTTP 400 錯誤。現改為安全裁剪,不再破壞訊息結構。
  • 修復 Pydantic 相容性問題:解決了歷史裁剪函式遇到 API 回應物件時發生崩潰的問題。