Fix main.py not properly import conf.py
This commit is contained in:
parent
8f35296fd0
commit
cc2ec7f999
2 changed files with 20 additions and 4 deletions
|
@ -1,6 +1,22 @@
|
|||
[jimmy]
|
||||
token = "token"
|
||||
debug_guilds = [994710566612500550]
|
||||
token = "token" # the bot token
|
||||
debug_guilds = [994710566612500550] # server IDs to create slash commands in. Set to null for all guilds.
|
||||
|
||||
[logging]
|
||||
level = "DEBUG"
|
||||
level = "DEBUG" # can be one of DEBUG, INFO, WARNING, ERROR, CRITICAL
|
||||
|
||||
[ollama.internal]
|
||||
# name is "internal"
|
||||
owner = 421698654189912064 # who owns the server
|
||||
allowed_models = [
|
||||
"*", # for all models
|
||||
"llama2-uncensored:latest" # for a specific tag.
|
||||
# Note that every model has a tag called "latest" which is the most recent version.
|
||||
]
|
||||
base_url = "http://ollama:11434/api" # this is the default if you're running via docker compose
|
||||
|
||||
[ollama.external]
|
||||
owner = 421698654189912064
|
||||
allowed_models = ["*"]
|
||||
base_url = "http://example.com/api"
|
||||
|
||||
|
|
2
main.py
2
main.py
|
@ -8,7 +8,7 @@ import discord
|
|||
import toml
|
||||
from discord.ext import commands
|
||||
from rich.logging import RichHandler
|
||||
from config import CONFIG
|
||||
from conf import CONFIG
|
||||
|
||||
log = logging.getLogger("jimmy")
|
||||
|
||||
|
|
Loading…
Reference in a new issue