diff --git a/plugins/dify/main.py b/plugins/dify/main.py index 03c14ca..8f2da75 100644 --- a/plugins/dify/main.py +++ b/plugins/dify/main.py @@ -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}")