feat: 自定义请求超时时长
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user