mirror of
https://github.com/kevinthedang/discord-ollama.git
synced 2025-12-12 11:56:06 -05:00
* add: validate thread creation in ollama channel * rm: channel_id variable * add: short notes for threads * update: openFile to openConfig for clarity * update: test ci runs on master * add: notes for work * add: basic chat storing via json * update: stores entire msgHist according to capacity * add: removes json file if thread is deleted * add: chats with independent histories * add: private vs public threads * update: validate threads made by ollama for chats * update: cleanup and version increment
22 lines
596 B
Plaintext
22 lines
596 B
Plaintext
# Discord token for the bot
|
|
CLIENT_TOKEN = BOT_TOKEN
|
|
|
|
# id token of a discord server
|
|
GUILD_ID = GUILD_ID
|
|
|
|
# model for the bot to query from (i.e. llama2 [llama2:13b], mistral, codellama, etc... )
|
|
MODEL = MODEL_NAME
|
|
|
|
# discord bot user id for mentions
|
|
CLIENT_UID = BOT_USER_ID
|
|
|
|
# ip/port address of docker container, I use 172.18.X.X for docker, 127.0.0.1 for local
|
|
OLLAMA_IP = IP_ADDRESS
|
|
OLLAMA_PORT = PORT
|
|
|
|
# ip address for discord bot container, I use 172.18.X.X, use different IP than ollama_ip
|
|
DISCORD_IP = IP_ADDRESS
|
|
|
|
# subnet address, ex. 172.18.0.0 as we use /16.
|
|
SUBNET_ADDRESS = ADDRESS
|