fix: minimax request timeout (#2185)

This commit is contained in:
takatost
2024-01-24 21:53:29 +08:00
committed by GitHub
parent 76c52300a2
commit 043517717e
2 changed files with 2 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ class MinimaxChatCompletion(object):
try:
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:
raise InternalServerError(e)

View File

@@ -84,7 +84,7 @@ class MinimaxChatCompletionPro(object):
try:
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:
raise InternalServerError(e)