优化响应时长。20秒太短了。

This commit is contained in:
liuwei
2025-05-26 13:42:48 +08:00
parent ba09af4276
commit 61854bd5d2

View File

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