diff --git a/README.md b/README.md index b4b9e5b..a9a477c 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/bot.env.example b/bot.env.example index 37cd17f..9557030 100644 --- a/bot.env.example +++ b/bot.env.example @@ -1,7 +1,7 @@ DISCORD_TOKEN= ADMIN_ID=209692688415457282 CHAT_CHANNEL_ID= -OLLAMA_HOST=ollama +OLLAMA_HOST=host.docker.internal OLLAMA_PORT=11434 OLLAMA_MODEL=llama3 REDIS_HOST=redis