优化代码

This commit is contained in:
2025-07-18 16:50:24 +08:00
parent 5d5c3c0257
commit 6ba3141885
4 changed files with 223 additions and 1038 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ class DifyClient:
self.api_key = api_key
self.base_url = base_url
def _send_request(self, method, endpoint, json=None, params=None, stream=False, timeout=300):
def _send_request(self, method, endpoint, json=None, params=None, stream=False, timeout=600):
headers = {
"Authorization": f"Bearer {self.api_key}",
"Content-Type": "application/json",