-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
[Question] 使用cloudflare tunnel 部署时无法流式回应 #781
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
看看这个是不是相关问题: #540 |
oneapi 没有上https 只是 把lobechat暴露了出去 |
oneapi does not go to https, it just exposes lobechat. |
与 #540 无关。 改写nginx反代: location /api/openai/chat {
proxy_pass http://your_backend_service;
# 添加或更改响应头
+++ add_header Content-Type text/event-stream;
# 你通常需要关闭缓冲
proxy_buffering off;
#其他配置,如websocketset header 等等,
......
} kubernetes nginx-ingress示例 kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: lobe-chat-ingress-lsoz4j
namespace: lobe-chat
labels:
app.kubernetes.io/name: lobe-chat
app.kubernetes.io/version: v1
annotations:
nginx.ingress.kubernetes.io/proxy-buffering: 'off'
+++ nginx.ingress.kubernetes.io/configuration-snippet: |
+++ if ($uri ~* "^/api/openai/chat") {
+++ more_set_headers "Content-Type: text/event-stream";
+++ }
... |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
🧐 问题描述 | Proposed Solution
如题,无法在使用 cloudflare tunnel 部署时使用流式回应
📝 补充信息 | Additional Information
No response
The text was updated successfully, but these errors were encountered: