feat: 植物识别百科ai助手迁移

This commit is contained in:
Blizzard
2026-05-24 01:41:22 +08:00
parent ae6d03d351
commit 076ed1509b
29 changed files with 1121 additions and 372 deletions
+1
View File
@@ -39,6 +39,7 @@ func NewProxyRouter(upstreams []config.Upstream) *ProxyRouter {
target := targetURL // 显式捕获循环变量
proxy := &httputil.ReverseProxy{
FlushInterval: -1, // 立即将数据刷新到客户端,确保 SSE 等流式接口能够实时响应
Rewrite: func(pr *httputil.ProxyRequest) {
pr.SetXForwarded()
pr.Out.URL.Scheme = target.Scheme