You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Sending a request to v1/chat/completions endpoint results in a long loading time of about 2 minutes, after which an error 500 response is returned. This only occurs when when stream is set to false. Possibly related to #1852?
Steps to reproduce
Steps to reproduce the behavior:
Start the API server
Execute the curl request below
Notice that nothing happens for about two minutes. The request is logged as incoming in the Jan console.
After two minutes, a 500 error is returned from the API.
Expected behavior
An OK response is returned in reasonable time
{"statusCode":500,"error":"Internal Server Error","message":"Converting circular structure to JSON\n --> starting at object with constructor 'Socket'\n | property 'parser' -> object with constructor 'HTTPParser'\n --- property 'socket' closes the circle"}%
The text was updated successfully, but these errors were encountered:
hi @wvteijlingen, thank you, the issue is reproducible, but changing the stop token can help: "stop": ["<|end_of_text|>","<|eot_id|>"],
Sample fo reference that is working on my side:
Sorry for the inconvenience, we will correct the sample cURL of our API reference soon. 🙏
Describe the bug
Sending a request to
v1/chat/completions
endpoint results in a long loading time of about 2 minutes, after which an error 500 response is returned. This only occurs when whenstream
is set tofalse
. Possibly related to #1852?Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
An OK response is returned in reasonable time
Environment details
curl command and output
2 minutes later...
The text was updated successfully, but these errors were encountered: