docs(readme): add information about how to run with ollama on host machine of docker
This commit is contained in:
parent
476b372c8b
commit
135021a444
@ -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.
|
- `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_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_PORT`: The port for the Ollama API.
|
||||||
- `OLLAMA_MODEL`: The model to use for the Ollama API.
|
- `OLLAMA_MODEL`: The model to use for the Ollama API.
|
||||||
- `REDIS_HOST`: The host for the Redis server.
|
- `REDIS_HOST`: The host for the Redis server.
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
DISCORD_TOKEN=<token>
|
DISCORD_TOKEN=<token>
|
||||||
ADMIN_ID=209692688415457282
|
ADMIN_ID=209692688415457282
|
||||||
CHAT_CHANNEL_ID=
|
CHAT_CHANNEL_ID=
|
||||||
OLLAMA_HOST=ollama
|
OLLAMA_HOST=host.docker.internal
|
||||||
OLLAMA_PORT=11434
|
OLLAMA_PORT=11434
|
||||||
OLLAMA_MODEL=llama3
|
OLLAMA_MODEL=llama3
|
||||||
REDIS_HOST=redis
|
REDIS_HOST=redis
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user