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
17cd5122
Commit
17cd5122
authored
Mar 08, 2024
by
Yeuoly
Committed by
takatost
Mar 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bugs
parent
97398ff2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
app_config_manager.py
api/core/app/apps/agent_chat/app_config_manager.py
+1
-1
app_config_manager.py
api/core/app/apps/completion/app_config_manager.py
+1
-1
completion_service.py
api/services/completion_service.py
+4
-4
No files found.
api/core/app/apps/agent_chat/app_config_manager.py
View file @
17cd5122
...
@@ -52,7 +52,7 @@ class AgentChatAppConfigManager(BaseAppConfigManager):
...
@@ -52,7 +52,7 @@ class AgentChatAppConfigManager(BaseAppConfigManager):
else
:
else
:
config_from
=
EasyUIBasedAppModelConfigFrom
.
APP_LATEST_CONFIG
config_from
=
EasyUIBasedAppModelConfigFrom
.
APP_LATEST_CONFIG
if
override_config_dict
!=
EasyUIBasedAppModelConfigFrom
.
ARGS
:
if
config_from
!=
EasyUIBasedAppModelConfigFrom
.
ARGS
:
app_model_config_dict
=
app_model_config
.
to_dict
()
app_model_config_dict
=
app_model_config
.
to_dict
()
config_dict
=
app_model_config_dict
.
copy
()
config_dict
=
app_model_config_dict
.
copy
()
else
:
else
:
...
...
api/core/app/apps/completion/app_config_manager.py
View file @
17cd5122
...
@@ -37,7 +37,7 @@ class CompletionAppConfigManager(BaseAppConfigManager):
...
@@ -37,7 +37,7 @@ class CompletionAppConfigManager(BaseAppConfigManager):
else
:
else
:
config_from
=
EasyUIBasedAppModelConfigFrom
.
APP_LATEST_CONFIG
config_from
=
EasyUIBasedAppModelConfigFrom
.
APP_LATEST_CONFIG
if
override_config_dict
!=
EasyUIBasedAppModelConfigFrom
.
ARGS
:
if
config_from
!=
EasyUIBasedAppModelConfigFrom
.
ARGS
:
app_model_config_dict
=
app_model_config
.
to_dict
()
app_model_config_dict
=
app_model_config
.
to_dict
()
config_dict
=
app_model_config_dict
.
copy
()
config_dict
=
app_model_config_dict
.
copy
()
else
:
else
:
...
...
api/services/completion_service.py
View file @
17cd5122
...
@@ -30,16 +30,16 @@ class CompletionService:
...
@@ -30,16 +30,16 @@ class CompletionService:
invoke_from
=
invoke_from
,
invoke_from
=
invoke_from
,
stream
=
streaming
stream
=
streaming
)
)
elif
app_model
.
mode
==
AppMode
.
CHAT
.
value
:
elif
app_model
.
mode
==
AppMode
.
AGENT_CHAT
.
value
or
app_model
.
is_agent
:
return
ChatAppGenerator
()
.
generate
(
return
Agent
ChatAppGenerator
()
.
generate
(
app_model
=
app_model
,
app_model
=
app_model
,
user
=
user
,
user
=
user
,
args
=
args
,
args
=
args
,
invoke_from
=
invoke_from
,
invoke_from
=
invoke_from
,
stream
=
streaming
stream
=
streaming
)
)
elif
app_model
.
mode
==
AppMode
.
AGENT_
CHAT
.
value
:
elif
app_model
.
mode
==
AppMode
.
CHAT
.
value
:
return
Agent
ChatAppGenerator
()
.
generate
(
return
ChatAppGenerator
()
.
generate
(
app_model
=
app_model
,
app_model
=
app_model
,
user
=
user
,
user
=
user
,
args
=
args
,
args
=
args
,
...
...
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