FastChat icon indicating copy to clipboard operation
FastChat copied to clipboard

JSON decode error

Open 0sengseng0 opened this issue 1 year ago • 1 comments

{"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. image

0sengseng0 avatar Apr 02 '24 03:04 0sengseng0

I had a similar issue when calling the API from Windows due to how Windows can encode some characters.

brandonbiggs avatar Apr 02 '24 18:04 brandonbiggs