Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it fails on the [completions] or [chat/completions] for JSONDecodeError #10

Open
Davidcake opened this issue Jan 18, 2024 · 0 comments
Open

Comments

@Davidcake
Copy link

after run [ litellm --model ollama/xxx], it works fine on the swagger URL.
and it works well on [GET /models].
but it fails on the [completions] or [chat/completions]. it

{
"error": {
"message": "Expecting value: line 1 column 1 (char 0)\n\nTraceback (most recent call last):\n File "/home/ubuntu/.local/lib/python3.8/site-packages/litellm/proxy/proxy_server.py", line 1456, in completion\n data = json.loads(body_str)\n File "/usr/lib/python3.8/json/init.py", line 357, in loads\n return _default_decoder.decode(s)\n File "/usr/lib/python3.8/json/decoder.py", line 337, in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode\n raise JSONDecodeError("Expecting value", s, err.value) from None\njson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n",
"type": "None",
"param": "None",
"code": 500
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant