-
Notifications
You must be signed in to change notification settings - Fork 36
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
Something err when stream is not true in requst body #63
Comments
What is the error that you see? |
No specific error reported. I use postman. It shows "Error: Decompression failed" in console. |
Got it. It may be something related to a compression header being forwarded incorrectly. If you need a short term workaround, I would recommend running the Cloudflare proxy (apis/cloudflare) locally (via |
I will try cloudflare. But I still want to implement it in node. I want to make sure that both the openai eventstream and json results can be processed in |
I found the reason why non-stream requests fail. In openai, the response header of a non-stream openai request contains |
Thanks @GuanJdoJ. Will follow up on that PR. |
I run a local service according to this document.
It is OK when
"stream": true
is set in request body. But if you don't set the stream, it will fail.Success:
Failed:
But call
https://braintrustproxy.com
will be OK. Why?The text was updated successfully, but these errors were encountered: