From 135021a4445e77f412bdf62b3c3f70bf14ce3f07 Mon Sep 17 00:00:00 2001 From: The0Mikkel Date: Tue, 28 May 2024 11:02:28 +0200 Subject: [PATCH] docs(readme): add information about how to run with ollama on host machine of docker --- README.md | 2 +- bot.env.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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