docs(readme): add information about how to run with ollama on host machine of docker

This commit is contained in:
The0Mikkel 2024-05-28 11:02:28 +02:00
parent 476b372c8b
commit 135021a444
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ The bot can be configured by setting the following environment variables:
- `DISCORD_TOKEN`: Your Discord bot token. This is required for the bot to connect to Discord.
- `OLLAMA_SCHEME`: The scheme for the Ollama API (http or https).
- `OLLAMA_HOST`: The host for the Ollama API.
- `OLLAMA_HOST`: The host for the Ollama API. To use the Ollama API hosted on the host machine, use `host.docker.internal`. Default is `127.0.0.1`.
- `OLLAMA_PORT`: The port for the Ollama API.
- `OLLAMA_MODEL`: The model to use for the Ollama API.
- `REDIS_HOST`: The host for the Redis server.

View File

@ -1,7 +1,7 @@
DISCORD_TOKEN=<token>
ADMIN_ID=209692688415457282
CHAT_CHANNEL_ID=
OLLAMA_HOST=ollama
OLLAMA_HOST=host.docker.internal
OLLAMA_PORT=11434
OLLAMA_MODEL=llama3
REDIS_HOST=redis