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

787

Back to catalogue

GamesAI-v0.5.11.mcdr

Version

0.5.11

Date

July 28, 2026

Size

54.15 KiB

Downloads

13

MD5

609998bdebb807a2869ecf1ad83016b7

SHA256

77bb2bfae23bd70b077905c795a6367dfc97ecb0c45a8033277f1b0df284c107

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 Fix: Tool Execution Race Condition

Fixed a critical bug where using blocking tools (such as setting timers) could cause persistent HTTP 400 errors and conversation history corruption. When a tool blocked the request thread, incomplete tool call records leaked into shared conversation history, causing all subsequent requests to fail until the history was manually cleared. Now each request safely manages its own conversation state, and concurrent requests no longer overwrite each other.


🐛 Bug 修复:工具执行竞态条件

修复了一个关键 Bug:使用阻塞型工具(如设置定时器)时,可能导致持续的 HTTP 400 错误和对话历史损坏。当工具阻塞请求线程时,不完整的工具调用记录会泄露到共享对话历史中,导致后续所有请求失败,直到手动清除历史记录。现在每个请求安全地管理自己的对话状态,并发请求不再相互覆盖。


🐛 Bug 修復:工具執行競態條件

修復了一個關鍵 Bug:使用阻塞型工具(如設定計時器)時,可能導致持續的 HTTP 400 錯誤和對話歷史損壞。當工具阻塞請求執行緒時,不完整的工具呼叫記錄會洩露到共享對話歷史中,導致後續所有請求失敗,直到手動清除歷史記錄。現在每個請求安全地管理自己的對話狀態,並發請求不再相互覆蓋。