dify 超时20秒

This commit is contained in:
Liu
2025-04-09 21:07:41 +08:00
parent 57234e4282
commit 70d2195e4a

View File

@@ -235,7 +235,7 @@ class DifyPlugin(MessagePluginInterface):
try:
# 使用普通请求(非流式)
response = requests.post(url, headers=headers, json=data, proxies=proxies)
response = requests.post(url, headers=headers, json=data, proxies=proxies,timeout=20)
if response.status_code != 200:
self.LOG.error(f"Dify API请求失败: {response.status_code} {response.text}")