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

support websocket #204

Open
gptq opened this issue Jul 25, 2024 · 1 comment
Open

support websocket #204

gptq opened this issue Jul 25, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@gptq
Copy link

gptq commented Jul 25, 2024

Is your feature request related to a problem? Please describe.
I'm always frustrated when reverse_proxy with websocket .Streaming output like gpt

Describe the solution you'd like

{"level":"info","ts":1721899225.2968636,"logger":"http.log.access.log1","msg":"handled request","request":{"remote_ip":"6.11.1.7","remote_port":"37900","client_ip":"6.11.1.7","proto":"HTTP/2.0","method":"POST","host":"api.aigc.it","uri":"/v1/messages","headers":{"Priority":["u=1, i"],"Sec-Ch-Ua":[""Not/A)Brand";v="8", "Chromium";v="126", "Microsoft Edge";v="126", "Microsoft Edge WebView2";v="126""],"Anthropic-Version":["2023-06-01"],"Accept-Encoding":["gzip, deflate, br, zstd"],"Accept":["application/json, text/event-stream"],"X-Api-Key":["sk-1224"],"Referer":["http://tauri.localhost/"],"Sec-Fetch-Site":["cross-site"],"Sec-Fetch-Mode":["cors"],"Accept-Language":["zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6"],"Content-Type":["application/json"],"Sec-Ch-Ua-Platform":[""Windows""],"Origin":["http://tauri.localhost"],"Sec-Fetch-Dest":["empty"],"Content-Length":["345"],"Sec-Ch-Ua-Mobile":["?0"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","server_name":"api.aigc.it"}},"bytes_read":345,"user_id":"","duration":0.000292049,"size":1249,"status":403,"resp_headers":{"Alt-Svc":["h3=":443"; ma=2592000"],"X-Teler-Msg":["Detects self-executing JavaScript functions"],"X-Teler-Threat":["CommonWebAttack"],"X-Teler-Req-Id":["bff3912d17180f1127c6"],"Content-Type":["text/html"],"Server":["Caddy"]}}

Describe alternatives you've considered
None yet

Additional context
None yet

@gptq gptq added the enhancement New feature or request label Jul 25, 2024
@dwisiswant0
Copy link
Collaborator

Could you give me more details, @gptq? What's your end goal?

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

No branches or pull requests

2 participants