Fabrice Hong
862d44ea39
fix(logger): fix typewriter simulation doesn't work well with Typing spinner
2023-04-12 19:54:03 +02:00
Fabrice Hong
43c006d71c
feat(global): errors logs are logged as debug level and activated with program argument 'debug'
2023-04-12 19:41:08 +02:00
Samuel Reed
434f27fb51
Fix various JSON input bugs in correction
...
By not having correct_json(json_str) in the try/except,
it was still easily possible to throw Invalid JSON errors.
When responses were received with no JSON at all, parsing
would fail on attempting to locate the braces.
2023-04-12 10:34:33 -04:00
Richard Beales
c765b345b4
Merge pull request #904 from endolith/typos
...
Fix some typos
2023-04-12 08:50:06 +01:00
Toran Bruce Richards
e4bb730826
Merge pull request #759 from BillSchumacher/fix-too-specific-except
...
Fix case where index throws value error.
2023-04-12 18:51:57 +12:00
endolith
cf8b06f11f
Fix some typos
2023-04-12 00:11:24 -04:00
kinance
e0cb648858
Make the cfg.debug to cfg.debug_mode consistent across files
2023-04-11 23:01:49 +09:00
Andy Melnikov
d12da33e55
Fix flake8 W293 and W391
2023-04-11 07:53:32 +02:00
BillSchumacher
66d316a19c
Fix case where index throws value error.
2023-04-10 21:55:35 -05:00
cryptidv
026361aa3a
Changed occurances of 'cfg.debug_mode' to 'cfg.debug'
2023-04-10 14:22:58 +01:00
Toran Bruce Richards
93c2582705
Merge branch 'master' into master
2023-04-10 13:29:53 +01:00
Ikko Eltociear Ashimine
bcf1606d8a
Merge branch 'master' into patch-2
2023-04-10 20:56:55 +09:00
Andres Caicedo
4ca12e216d
Merge branch 'master' into dev
2023-04-10 09:58:13 +02:00
BillSchumacher
b6444de25d
Fixes for common json errors, cleanup json_parser file.
2023-04-09 15:22:55 -05:00
Andres Caicedo
26abb30674
Merge branch 'master' into dev
2023-04-09 15:42:53 +02:00
Andres Caicedo
011699e6a1
Code review changes
2023-04-09 15:39:11 +02:00
Alexander Nikulin
546d8783e7
put debug setting to cfg and use it in when calling chat.chat_with_at and fix_json
2023-04-09 14:33:30 +04:00
kinance
c4c7350670
Revised the debug mode
2023-04-08 13:05:32 +09:00
kinance
91fe21e64d
Revised to support debug mode from command line
2023-04-08 12:39:57 +09:00
Ikko Eltociear Ashimine
c1034df2d3
fix typo in json_parser.py
...
specifed -> specified
2023-04-07 17:25:22 +09:00
Toran Bruce Richards
f33ff6ea01
Merge pull request #256 from fabricehong/fix_fix-json-wrong-interpretation
...
fix(json-jixer): enclose arguments in a python multi-line string so t…
2023-04-06 12:06:28 +01:00
Toran Bruce Richards
6f3bfe7ba0
Merge pull request #259 from fabricehong/fix_fix_json_returning_wrong_type
...
fixing the "TypeError('the JSON object must be str, bytes or bytearray, not dict')" after a json_fix is successful
2023-04-06 10:07:59 +01:00
Fabrice Hong
051be4df10
fix(json_parser): fixing the "TypeError('the JSON object must be str, bytes or bytearray, not dict')" after a json_fix is successful
2023-04-05 20:21:40 +02:00
Fabrice Hong
ffb95eb031
fix(json_parser): remove the tab character that can be present in the generated json. It makes the json.loads function throw an Invalid JSON error
2023-04-05 20:20:24 +02:00
Fabrice Hong
29a45de253
fix(json-jixer): enclose arguments in a python multi-line string so the fix_json assistant (GPT-3.5) can understand we are providing 2 strings arguments instead of one
2023-04-05 19:09:56 +02:00
Andres Caicedo
621f18eba7
Update json_parser.py
...
Introduces spaces between code blocks.
2023-04-04 11:34:28 +02:00
Andres Caicedo
8a29e71465
Merge branch 'master' into dev
2023-04-03 16:37:11 +02:00
Veylkh
f72afc7558
dirtyjson -> json
...
Fixes the missing UserDict (caused by migration from python 3.9 to ^3.10)
2023-04-03 14:28:22 +02:00
Andres Caicedo
765210f0cd
Add extra documentation
2023-04-03 14:10:02 +02:00
Toran Bruce Richards
c9be6edf9e
Improves parsing of AI JSON output.
...
This makes gpt3.5 turbo fully possible! 🚀
2023-04-03 11:34:17 +01:00
Taylor Brown
4173b07bce
Remove excessive debug text
2023-04-02 22:12:12 -05:00
Taylor Brown
3e587bc7fb
Make the json_parser more robust
...
For some reason the bot keeps prefacing its JSON. This fixes it for now.
2023-04-02 18:50:51 -05:00
Taylor Brown
dca5b78bfe
Add missing json_parser.py and add alternative requirements
...
This adds fix_and_parse_json
Also, add requirements-alternative.txt to help install reqs in a different environment
2023-04-02 17:34:11 -05:00