lm-sys / lm-sys/FastChat

JSON decode error

Open
#3,212 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

{"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](https://github.com/lm-sys/FastChat/assets/73268510/49e7cad3-1ab6-43a3-803a-f2b84e71f655)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names no file, endpoint, or test to start from. Reproduce the JSON decode error with the reported API request, compare it with the command-line request, and identify the serving API entry point and expected successful parsing behavior before deciding what needs changing.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.