Unverified Commit 04351771 authored by takatost's avatar takatost Committed by GitHub

fix: minimax request timeout (#2185)

parent 76c52300
...@@ -78,7 +78,7 @@ class MinimaxChatCompletion(object): ...@@ -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): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment