优化响应时长。20秒太短了。
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user