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
3afb0192
Commit
3afb0192
authored
Jul 12, 2023
by
John Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: change completion timeout to 10m
parent
64c48938
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
orchestrator_rule_parser.py
api/core/orchestrator_rule_parser.py
+1
-2
completion_service.py
api/services/completion_service.py
+2
-2
No files found.
api/core/orchestrator_rule_parser.py
View file @
3afb0192
...
...
@@ -2,7 +2,6 @@ import math
from
typing
import
Optional
from
langchain
import
WikipediaAPIWrapper
from
langchain.callbacks.base
import
BaseCallbackHandler
from
langchain.callbacks.manager
import
Callbacks
from
langchain.memory.chat_memory
import
BaseChatMemory
from
langchain.tools
import
BaseTool
,
Tool
,
WikipediaQueryRun
...
...
@@ -58,7 +57,7 @@ class OrchestratorRuleParser:
tenant_id
=
self
.
tenant_id
,
model_name
=
agent_model_name
,
temperature
=
0
,
max_tokens
=
1
0
00
,
max_tokens
=
1
5
00
,
callbacks
=
[
agent_callback
,
DifyStdOutCallbackHandler
()]
)
...
...
api/services/completion_service.py
View file @
3afb0192
...
...
@@ -227,8 +227,8 @@ class CompletionService:
@
classmethod
def
countdown_and_close
(
cls
,
worker_thread
,
pubsub
,
user
,
generate_task_id
)
->
threading
.
Thread
:
# wait for
5
minutes to close the thread
timeout
=
3
00
# wait for
10
minutes to close the thread
timeout
=
6
00
def
close_pubsub
():
sleep_iterations
=
0
...
...
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