Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
04351771
Unverified
Commit
04351771
authored
Jan 24, 2024
by
takatost
Committed by
GitHub
Jan 24, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: minimax request timeout (#2185)
parent
76c52300
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
chat_completion.py
...el_runtime/model_providers/minimax/llm/chat_completion.py
+1
-1
chat_completion_pro.py
...untime/model_providers/minimax/llm/chat_completion_pro.py
+1
-1
No files found.
api/core/model_runtime/model_providers/minimax/llm/chat_completion.py
View file @
04351771
...
...
@@ -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
)
...
...
api/core/model_runtime/model_providers/minimax/llm/chat_completion_pro.py
View file @
04351771
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment