I Finally got this working smoothly. I’ve been building a custom chat bot using the Gemini 2.0 Flash API to see if I could make an AI that actually feels like its part of the server and is useful, and it looks pretty good.

I'm banking on the 10$ credit limit for the API that you know get with google ai pro, i previously used the llama-3.1-8b-instant model it was fast but pretty bad.

The way the skript works is by first looking for the trigger word (zeer), then it dumps a massive json object with all the possible placeholders the api might need including what they are looking at. It then sends a HTTP POST to the api + the knowledge base skript i made that includes facts/commands/general server info(stopping hallucinations and sticking to the topic). I also added prompt limits within the skript so players don't use up all the tokens.

Correct me if I'm wrong but this might be the first instance of an LLM running in chat that has the ability to read the world in a public Minecraft server.

Voir le contenu lié