Commit Graph

10 Commits (cb14c8d999c32c89215be04d27fe132a149eb047)

Author SHA1 Message Date
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
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
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