fix: xiaoguo_scanner LLM超时恢复30s

This commit is contained in:
知微
2026-06-24 22:05:45 +08:00
parent 9b878001af
commit 5a7335e583
+1 -1
View File
@@ -224,7 +224,7 @@ def check_stock(code, name, articles):
req = urllib.request.Request(XIAOGUO_API, data=payload,
headers={"Content-Type": "application/json"}, method="POST")
try:
resp = opener.open(req, timeout=15)
resp = opener.open(req, timeout=30)
reply = json.loads(resp.read())["choices"][0]["message"]["content"]
if "有关" in reply or "利好" in reply or "利空" in reply:
for s in ["利好", "利空", "中性"]: