Skip to content

Commit

Permalink
fix: minimax request timeout (#2185)
Browse files Browse the repository at this point in the history
  • Loading branch information
takatost authored Jan 24, 2024
1 parent 76c5230 commit 0435177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def generate(self, model: str, api_key: str, group_id: str,

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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def generate(self, model: str, api_key: str, group_id: str,

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)

Expand Down

0 comments on commit 0435177

Please sign in to comment.