feat: 自定义请求超时时长

This commit is contained in:
Cassianvale
2025-03-04 16:23:21 +08:00
parent ebe4312954
commit 7a57b1366e
4 changed files with 43 additions and 19 deletions

View File

@@ -85,7 +85,7 @@ def test_api_stream():
api_url,
headers=headers,
json=payload,
timeout=60,
timeout=int(os.getenv('API_TIMEOUT', 60)),
stream=True
)