#"Invalid JSON response body at https://openrouter.ai/api/v1/chat/completions Unexpected end of JSON"
10 messages · Page 1 of 1 (latest)
hmm...
that's like nothing...
If you have a sample requests that you can share, I can try to replicate it on my end
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).
This is when you're streaming and the delta doesn't form the full JSON right?
(or at least the full arg?)
Yes