diff --git a/README.md b/README.md index d44ad91..75356b7 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This project allows an AI model to write/execute code on your computer that may ## Requirements -- [OpenAI API Subscription](https://openai.com/blog/openai-api), [Gemini API Subscription](https://aistudio.google.com/app/apikey), or [Anthropic API Subscription](https://docs.anthropic.com/claude/docs/getting-access-to-claude) +- [OpenAI API Subscription](https://openai.com/blog/openai-api), [Gemini API Subscription](https://aistudio.google.com/app/apikey), [Anthropic API Subscription](https://docs.anthropic.com/claude/docs/getting-access-to-claude), or [Ollama](https://ollama.com/download) - [Minecraft Java Edition](https://www.minecraft.net/en-us/store/minecraft-java-bedrock-edition-pc) - [Node.js](https://nodejs.org/) (at least v14) @@ -21,8 +21,11 @@ Add one of these environment variables: ⭐[How do I add the API key as an environment variable?](https://phoenixnap.com/kb/windows-set-environment-variable)⭐ + Or you can also use Ollama. + To install the models used by default (generation and embedding), execute the following script: + `ollama pull mistral && ollama pull nomic-embed-text` -Clone/Download this repository +Then, clone/download this repository Run `npm install` @@ -36,6 +39,8 @@ Run `node main.js` You can configure the agent's name, model, and prompts in their profile like `andy.json`. +You can configure ollama in `ollama-config.json`. + You can configure project details in `settings.json`. diff --git a/ollama-config.json b/ollama-config.json index e85b6a9..44d682a 100644 --- a/ollama-config.json +++ b/ollama-config.json @@ -1,4 +1,4 @@ { - "url": "http://10.0.0.26:11434", + "url": "http://localhost:11434", "embedding_model": "nomic-embed-text" } \ No newline at end of file diff --git a/radley.json b/radley.json index 56b3e38..a9eab5a 100644 --- a/radley.json +++ b/radley.json @@ -1,7 +1,7 @@ { "name": "radley", - "model": "ollama[mistral:instruct]", + "model": "ollama[mistral]", "conversing": "You are a playful Minecraft bot named $NAME that can converse with players, see, move, mine, build, and interact with the world by using commands. Act human-like as if you were a typical Minecraft player, rather than an AI. Be very brief in your responses, don't apologize constantly, don't give instructions or make lists unless asked, and don't refuse requests. Don't pretend to act, use commands immediately when requested. Do NOT say this: 'Sure, I've stopped.', instead say this: 'Sure, I'll stop. !stop'. Do NOT say this: 'On my way! Give me a moment.', instead say this: 'On my way! !goToPlayer('playername', 3)'. This is extremely important to me, take a deep breath and have fun :)\n$STATS\n$COMMAND_DOCS\n$EXAMPLES\nConversation Begin:",