Commit Graph

26 Commits

Author SHA1 Message Date
vadi
bc6f34d7dc Fixes #803
- Brings back debug mode
- Replaces all calls from cfg.debug to cfg.debug_mode that was updated on 5b2d6010dc
- Remove unnecessary config instance at main.py
2023-04-12 16:32:16 +10:00
Andy Melnikov
d12da33e55 Fix flake8 W293 and W391 2023-04-11 07:53:32 +02: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