Version 2.8
- (new) Now Commands can be taken by AI. You just naturally have to ask it. eg "/chatmc hey save this location as home". It will save your current location with the name you give it. You can also same way ask it to remove locations.
- Removed The manual save and remove commands. "clearchat" Command is still there.
- The Mod Uses gemini 2.0 flash model instead of old Llama Models. Quality improvements over 10x!
- Now the API Key is hidden and not exposed in the code. The key in older Mod files will be deleted in 3 months.
- The staticContextCache ensures that the unchanging part of the prompt (instructions and player name) is computed once per player.
- The getDynamicContext method builds current context information—including position, dimension, world conditions (time and weather), and game mode/difficulty—on every call so that up-to-date data is always provided.
- replaces the use of Minecraft’s PersistentState API with a file‑based JSON persistence approach. more Reliable for saving locations. It ensures that safe locations remain safe in other version of mod and game too.
- A dedicated thread pool (API_EXECUTOR) now handles asynchronous API calls, improving resource management compared to the default executor.
- Replaced the history summarizes method from manually using string concatenation to, the history actually being summarized by another specialized model. Reduces token usage and gives better response.
- By decoupling system context from the conversation history, even if older conversation messages are summarized, the crucial static information (like the player's name and instructions) is always included in the API call.
- Upgraded the internal conversation history map from a synchronized HashMap to a ConcurrentHashMap. providing smoother performance during high-load scenarios.
Version 2.5-beta
[Note: In Beta version Your Chats may processed manually by me. This helps me bring these new features with stability in release versions. By Joining the Beta testing, You really help a lot improving the mod for others.]
- (new) Now Commands can be taken by AI. You just naturally have to ask it. eg "/chatmc hey save this location as home". It will save your current location with the name you give it. You can also same way ask it to remove locations.
- Removed The manual save and remove commands. "clearchat" Command is still there.
- replaces the use of Minecraft’s PersistentState API with a file‑based JSON persistence approach. more Reliable for saving locations. It ensures that safe locations remain safe in other version of mod and game too.
- A dedicated thread pool (API_EXECUTOR) now handles asynchronous API calls, improving resource management compared to the default executor.
- Upgraded the internal conversation history map from a synchronized HashMap to a ConcurrentHashMap. providing smoother performance during high-load scenarios.
- the Ai won't Hallucinate after a long chat history.