#"Invalid JSON response body at https://openrouter.ai/api/v1/chat/completions Unexpected end of JSON"

10 messages · Page 1 of 1 (latest)

south basin
#

What happen if you stream the data instead?

south basin
#

How big is the payload btw?

#

(i.e the file content value)

south basin
#

hmm...

#

that's like nothing...

#

If you have a sample requests that you can share, I can try to replicate it on my end

thorn pier
#

Hi @south basin I know I said before that streaming kinda fixed the issue, but I can very consistently get claude 3.5 sonnet to output invalid function calls ie missing parameters/invalid json ({"path": "ChatRow.tsx" instead of {"path": "ChatRow.tsx", "content": "..."} ). Oddly enough when I respond to it saying that it gave an invalid function call and needs to try with a complete response, it gives me the intended output. I would just write it off as claude being stupid, but I cannot reproduce the same issue with anthropic or aws bedrock (same request body).

south basin
#

(or at least the full arg?)

thorn pier
#

Yes