4.12.0: Added -T/--training option to generate training line
4.12.1: Added -e/--estimate option to estimate consumption
4.12.10: Added docstrings Switched from tabs to spaces (PEP8) Changed default available models Changed estimation token cost values
4.12.4: Fixed requirements to use json5 instead of json-five
4.12.5: Fixed emojis crashing the history because utf16
4.12.6: Fixed emojis crashing the edit function because utf16
4.12.7: Fixed a minor bug where /file_input would insert a "'" after the file contents. Also, added filetype information on codeblocks with /file_input, depending on the file extension
4.12.8: Added a vim modeline to history files to specify it's json5, not json.
added server unavailable error handling
added exception handling for token estimation
added handling of invalid requests (mostly for too large requests)
changed main config from json to json5 (json-five), allows for comments in the config file
added support for organization specification
... Dude... Stop using python2...
added file deletion for empty temp files even when exited with ctrl+c