updated readme and set default config

This commit is contained in:
Radnos 2024-04-08 13:31:20 +02:00
parent a12be6ec56
commit 54a45c3dfe
3 changed files with 9 additions and 4 deletions

View file

@ -8,7 +8,7 @@ This project allows an AI model to write/execute code on your computer that may
## Requirements ## 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) - [Minecraft Java Edition](https://www.minecraft.net/en-us/store/minecraft-java-bedrock-edition-pc)
- [Node.js](https://nodejs.org/) (at least v14) - [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)⭐ ⭐[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` 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 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`. You can configure project details in `settings.json`.

View file

@ -1,4 +1,4 @@
{ {
"url": "http://10.0.0.26:11434", "url": "http://localhost:11434",
"embedding_model": "nomic-embed-text" "embedding_model": "nomic-embed-text"
} }

View file

@ -1,7 +1,7 @@
{ {
"name": "radley", "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:", "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:",