From 105bade1e79a525d0b70fbdbbadd12466641d4de Mon Sep 17 00:00:00 2001 From: Color2333 <1552429809@qq.com> Date: Sat, 10 Oct 2026 12:12:25 +0800 Subject: [PATCH] =?UTF-8?q?test(smoke):=20LLM=20=E7=AB=AF=E7=82=B9?= =?UTF-8?q?=E6=94=BE=E5=AE=BD=20curl=20=E8=B6=85=E6=97=B6=E8=87=B3=20150s?= =?UTF-8?q?=EF=BC=88=E7=94=9F=E6=88=90=E8=80=97=E6=97=B6=2010-120s=20?= =?UTF-8?q?=E5=B1=9E=E9=A2=84=E6=9C=9F=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/golden_smoke.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/golden_smoke.sh b/scripts/golden_smoke.sh index dde4737..a96eb3a 100644 --- a/scripts/golden_smoke.sh +++ b/scripts/golden_smoke.sh @@ -9,10 +9,15 @@ PASS=0; FAIL=0; FAILED_LIST="" code() { # method path [json_body] local m="$1" p="$2" b="${3:-}" + # LLM 端点生成耗时 10-120s,放宽超时 + local t=30 + case "$p" in + *ai/explain*|*suggest-channels*|*suggest-keywords*|*rag/ask*|*research-gaps*|*evolution*|*survey*) t=150 ;; + esac if [ -n "$b" ]; then - curl -sk -o /dev/null -w '%{http_code}' -X "$m" "$BASE/api$p" -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d "$b" --max-time 30 + curl -sk -o /dev/null -w '%{http_code}' -X "$m" "$BASE/api$p" -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d "$b" --max-time "$t" else - curl -sk -o /dev/null -w '%{http_code}' -X "$m" "$BASE/api$p" -H "Authorization: Bearer $TOKEN" --max-time 30 + curl -sk -o /dev/null -w '%{http_code}' -X "$m" "$BASE/api$p" -H "Authorization: Bearer $TOKEN" --max-time "$t" fi }