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
c039f4af
Unverified
Commit
c039f4af
authored
Oct 17, 2023
by
takatost
Committed by
GitHub
Oct 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: app model config detached in completion thread (#1366)
parent
07285e5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
completion_service.py
api/services/completion_service.py
+2
-2
No files found.
api/services/completion_service.py
View file @
c039f4af
...
@@ -142,7 +142,7 @@ class CompletionService:
...
@@ -142,7 +142,7 @@ class CompletionService:
'flask_app'
:
current_app
.
_get_current_object
(),
'flask_app'
:
current_app
.
_get_current_object
(),
'generate_task_id'
:
generate_task_id
,
'generate_task_id'
:
generate_task_id
,
'detached_app_model'
:
app_model
,
'detached_app_model'
:
app_model
,
'app_model_config'
:
app_model_config
,
'app_model_config'
:
app_model_config
.
copy
()
,
'query'
:
query
,
'query'
:
query
,
'inputs'
:
inputs
,
'inputs'
:
inputs
,
'detached_user'
:
user
,
'detached_user'
:
user
,
...
@@ -284,7 +284,7 @@ class CompletionService:
...
@@ -284,7 +284,7 @@ class CompletionService:
'flask_app'
:
current_app
.
_get_current_object
(),
'flask_app'
:
current_app
.
_get_current_object
(),
'generate_task_id'
:
generate_task_id
,
'generate_task_id'
:
generate_task_id
,
'detached_app_model'
:
app_model
,
'detached_app_model'
:
app_model
,
'app_model_config'
:
app_model_config
,
'app_model_config'
:
app_model_config
.
copy
()
,
'query'
:
message
.
query
,
'query'
:
message
.
query
,
'inputs'
:
message
.
inputs
,
'inputs'
:
message
.
inputs
,
'detached_user'
:
user
,
'detached_user'
:
user
,
...
...
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