From b4d0e816bfdf5ed780ae83dba6d0d689720379e5 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Wed, 16 Apr 2025 01:00:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=20HTTP=20=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E7=9A=84=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4=E4=BB=8E?= =?UTF-8?q?=2010=20=E7=A7=92=E8=B0=83=E6=95=B4=E4=B8=BA=20300=20=E7=A7=92?= =?UTF-8?q?=EF=BC=8C=E4=BB=A5=E6=8F=90=E9=AB=98=E7=BD=91=E7=BB=9C=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E7=9A=84=E7=A8=B3=E5=AE=9A=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/headmaster/headmaster.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/headmaster/headmaster.go b/handler/headmaster/headmaster.go index 64cf1ea..36371ec 100644 --- a/handler/headmaster/headmaster.go +++ b/handler/headmaster/headmaster.go @@ -64,7 +64,7 @@ func ask(from string, question string) (reply string) { dialer, err := proxy.SOCKS5("tcp", proxyURL.Host, nil, proxy.Direct) if err == nil { llmConfig.HTTPClient = &http.Client{ - Timeout: 10 * time.Second, + Timeout: 300 * time.Second, Transport: &http.Transport{ Dial: func(network, addr string) (net.Conn, error) { return dialer.Dial(network, addr) @@ -77,7 +77,7 @@ func ask(from string, question string) (reply string) { } else { log.Printf("使用HTTP/HTTPS代理: %s\n", proxyURL.Host) llmConfig.HTTPClient = &http.Client{ - Timeout: 10 * time.Second, + Timeout: 300 * time.Second, Transport: &http.Transport{ Proxy: http.ProxyURL(proxyURL), },