Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log and exit is broken #13

Open
depwl9992 opened this issue Jun 12, 2023 · 1 comment
Open

log and exit is broken #13

depwl9992 opened this issue Jun 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@depwl9992
Copy link
Collaborator

Player: Continue onward!!
Invalid request to OpenAI API: This model's maximum context length is 4097 tokens. However, your messages resulted in 4177 tokens. Please reduce the length of the messages.
Player: log and exit
Traceback (most recent call last):
  File "D:\My Programs\GameMaster-GPT\gm-gpt.py", line 349, in <module>
    start_new_adventure()
  File "D:\My Programs\GameMaster-GPT\gm-gpt.py", line 209, in start_new_adventure
    if log_file_name == "":
       ^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'log_file_name' where it is not associated with a value

I'm guessing something with the refactoring was missed..

@depwl9992 depwl9992 added the bug Something isn't working label Jun 12, 2023
@dmkilday
Copy link
Owner

Sorry...I probably broke this. Note, i changed the log directory name from "Logs" to "log". I did the same thing with Data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants