FastChat
FastChat copied to clipboard
JSON decode error
{"object":"error","message":"[{'type': 'json_invalid', 'loc': ('body', 2), 'msg': 'JSON decode error', 'input': {}, 'ctx': {'error': 'Expecting property name enclosed in double quotes'}}]","code":40001}
Why do I have json parsing issues when I use api calls? I changed two models, neither of which worked. But it works fine on the command line.
I had a similar issue when calling the API from Windows due to how Windows can encode some characters.