From 7cfc25ead85a3a5f8f30ab44826669fd4ed01049 Mon Sep 17 00:00:00 2001 From: youpaishidifu <1@ypshidifu.cn> Date: Fri, 13 Nov 2026 18:10:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC121=E6=89=B9=E7=BB=AD26-2=EF=BC=9AAI?= =?UTF-8?q?=20=E8=AF=B7=E6=B1=82=E8=B6=85=E6=97=B6=2090s=E2=86=92180s?= =?UTF-8?q?=EF=BC=88=E5=AE=9E=E6=B5=8B=E4=B8=8A=E6=B8=B8=E5=AF=B9=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=20system=20prompt=20=E6=8E=A8=E7=90=86=2023-75s=20?= =?UTF-8?q?=E5=88=86=E5=B8=83=E4=B8=94=2030%=20=E8=B6=85=2090s=EF=BC=8C180?= =?UTF-8?q?s=20=E5=85=9C=E5=BA=95=EF=BC=9B3=20=E5=A4=84=20.timeout=20+=202?= =?UTF-8?q?=20=E5=A4=84=E8=AF=8A=E6=96=AD=E6=96=87=E6=A1=88=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/Sdf1_login/AIChatManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/Sdf1_login/AIChatManager.java b/src/main/java/Sdf1_login/AIChatManager.java index 30697f9..262009a 100644 --- a/src/main/java/Sdf1_login/AIChatManager.java +++ b/src/main/java/Sdf1_login/AIChatManager.java @@ -1008,7 +1008,7 @@ public class AIChatManager { .header("Content-Type", "application/json; charset=utf-8") .header("Authorization", "Bearer " + endpoint.apiKey) .POST(HttpRequest.BodyPublishers.ofString(jsonBody, StandardCharsets.UTF_8)) - .timeout(Duration.ofSeconds(90)) + .timeout(Duration.ofSeconds(180)) .build(); return httpClient.send(request, HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8)); @@ -1030,7 +1030,7 @@ public class AIChatManager { if (e instanceof java.net.http.HttpConnectTimeoutException) { plugin.getLogger().warning("[AI聊天-调试] 诊断: 连接超时——请求未发出,目标地址不可达或DNS解析慢"); } else if (e instanceof java.net.http.HttpTimeoutException) { - plugin.getLogger().warning("[AI聊天-调试] 诊断: 响应超时——请求已发出,上游90秒内未返回(可能限流/处理慢/挂死)"); + plugin.getLogger().warning("[AI聊天-调试] 诊断: 响应超时——请求已发出,上游180秒内未返回(可能限流/处理慢/挂死)"); } else if (e instanceof java.net.ConnectException) { plugin.getLogger().warning("[AI聊天-调试] 诊断: 连接被拒——目标端口未监听或防火墙拦截"); } else if (e instanceof java.net.UnknownHostException) { @@ -1138,7 +1138,7 @@ public class AIChatManager { .header("Content-Type", "application/json; charset=utf-8") .header("Authorization", "Bearer " + endpoint.apiKey) .POST(HttpRequest.BodyPublishers.ofString(followUpJson, StandardCharsets.UTF_8)) - .timeout(Duration.ofSeconds(90)) + .timeout(Duration.ofSeconds(180)) .build(); HttpResponse followUpResp = httpClient.send(followUp, HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8)); @@ -2798,7 +2798,7 @@ public class AIChatManager { .header("Content-Type", "application/json; charset=utf-8") .header("Authorization", "Bearer " + endpoint.apiKey) .POST(HttpRequest.BodyPublishers.ofString(jsonBody, StandardCharsets.UTF_8)) - .timeout(Duration.ofSeconds(90)) + .timeout(Duration.ofSeconds(180)) .build(); return httpClient.send(request, HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8)); @@ -2816,7 +2816,7 @@ public class AIChatManager { if (e instanceof java.net.http.HttpConnectTimeoutException) { plugin.getLogger().warning("[AI聊天-调试] 诊断: 连接超时——请求未发出,目标地址不可达或DNS解析慢"); } else if (e instanceof java.net.http.HttpTimeoutException) { - plugin.getLogger().warning("[AI聊天-调试] 诊断: 响应超时——请求已发出,上游90秒内未返回(可能限流/处理慢/挂死)"); + plugin.getLogger().warning("[AI聊天-调试] 诊断: 响应超时——请求已发出,上游180秒内未返回(可能限流/处理慢/挂死)"); } else if (e instanceof java.net.ConnectException) { plugin.getLogger().warning("[AI聊天-调试] 诊断: 连接被拒——目标端口未监听或防火墙拦截"); } else if (e instanceof java.net.UnknownHostException) {