![[IMG]](//proxy.spigotmc.org/958db74e9c85772fdc93491299d3895cd44fd34d/68747470733a2f2f736f6369616c6966792e6769742e63692f6464616f64616e2f6d696e65636861746770742f696d6167653f6465736372697074696f6e3d31266465736372697074696f6e4564697461626c653d436861742532307769746825323043686174475054253230696e2532304d696e65637261667426666f6e743d496e746572266973737565733d31266c616e67756167653d31266e616d653d31267061747465726e3d536f6c6964267374617267617a6572733d31267468656d653d4175746f)
Chat with ChatGPT in Minecraft
All code is written by ChatGPT
Features
- OpenAPI format
- Custom models
- ChatGPT reverse proxy
- Load balancing
- Command completion
- Contextual chat
- Multiple characters
- Folia support
Installation
1. Download the plugin and place it in the plugins folder
2. Restart the server
To be compatible with more versions, the plugin does not specify a Bukkit API version. Therefore, when loading the plugin in a higher version, the console may display the following warning message, which is a normal phenomenon.
Code (Text):
> [Server thread/WARN]: Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
> [Server thread/WARN]: Legacy plugin MineChatGPT v1.0 does not specify an api-version.
3. Open the configuration file
config.yml, and modify the following two settings:
Code (Text):
# ======================================================
# API Configuration
# ======================================================
api:
# Your OpenAI API keys for authentication
# Get API keys at https://platform.openai.com/account/api-keys
keys:
- "sk-your_openai_api_key_1"
# Add multiple API keys below
# - "sk-your_openai_api_key_2"
# - "sk-your_openai_api_key_3"
# API key selection method: "round_robin" or "random"
selection_method: "round_robin"
# Base URL for OpenAI API
# Use proxy service if you cannot access official API
base_url: "https://api.openai.com/v1"
4. Run
/chatgpt reload in console to reload config
Commands & Permissions
- /chatgpt - View plugin help - minechatgpt.use
- /chatgpt <text> - Ask a question to ChatGPT - minechatgpt.use
- /chatgpt reload - Reload the configuration file - minechatgpt.reload
- /chatgpt model <model_name> - Switch to another model - minechatgpt.model
- /chatgpt modellist - View available model lists - minechatgpt.modellist
- /chatgpt context - Switch to continuous conversation mode - minechatgpt.context
- /chatgpt clear - Clear conversation history - minechatgpt.clear
FAQ
- Getting "Failed to contact ChatGPT." error
Check the error message in console.
- Console shows "connect timeout" or "connect reset"
Verify connectivity to the
base_url in
config.yml. Consider using a reverse proxy if you cannot access OpenAI's official API.
Yes, any model supporting OpenAI API format works.
Not recommended for inference models due to longer response times.
- Can I use it without a ChatGPT account?
Yes, many proxy services provide access.
The plugin should work on Folia but isn't optimized for it. Use at your own risk.
Statistics