The official gpt4free repository | various collection of powerful language models
GNU General Public License v3.0
62.22k
stars
13.39k
forks
source link
UnboundLocalError: cannot access local variable 'logs' where it is not associated with a value #2383
Closed
poggersbutnot closed 6 days ago
On the GUI (Web UI), this error occurs (UnboundLocalError), due to this extract from the code in the file
gui/server/api.py
To fix this, simply change
to
Or just define logs = [] for users who don't have debug.logging enabled as well, but imo that'd be unnecessary.
Bug description Throws a UnboundLocalError due to the variable 'logs' not existing for users who don't have debug.logging enabled.
ex. Type a message in the Web UI and send it.
Environment Not necessary.
Just want to also say that this module is awesome. Keep it up!