mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-13 12:56:51 +08:00
fix: minimax request timeout (#2185)
This commit is contained in:
@@ -78,7 +78,7 @@ class MinimaxChatCompletion(object):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
response = post(
|
response = post(
|
||||||
url=url, data=dumps(body), headers=headers, stream=stream, timeout=10)
|
url=url, data=dumps(body), headers=headers, stream=stream, timeout=(10, 300))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise InternalServerError(e)
|
raise InternalServerError(e)
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class MinimaxChatCompletionPro(object):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
response = post(
|
response = post(
|
||||||
url=url, data=dumps(body), headers=headers, stream=stream, timeout=10)
|
url=url, data=dumps(body), headers=headers, stream=stream, timeout=(10, 300))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise InternalServerError(e)
|
raise InternalServerError(e)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user