Skip to content

KeyError: 'DEFAULT_MODEL' #73

@TRexAILab

Description

@TRexAILab

Hello! Please help, when you start the bot with the python -m src.main command, this message appears.

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/gpt-discord-bot/src/main.py", line 8, in <module>
    from src.constants import (
  File "/home/gpt-discord-bot/src/constants.py", line 25, in <module>
    DEFAULT_MODEL = os.environ["DEFAULT_MODEL"]
  File "/usr/lib/python3.10/os.py", line 680, in __getitem__
    raise KeyError(key) from None
KeyError: 'DEFAULT_MODEL'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions