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
edb06f6a
Unverified
Commit
edb06f6a
authored
Aug 18, 2023
by
takatost
Committed by
GitHub
Aug 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: react router agent direct output (#904)
parent
6ca3bcbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
completion.py
api/core/completion.py
+1
-1
No files found.
api/core/completion.py
View file @
edb06f6a
...
@@ -126,7 +126,7 @@ class Completion:
...
@@ -126,7 +126,7 @@ class Completion:
# the output of the agent can be used directly as the main output content without calling LLM again
# the output of the agent can be used directly as the main output content without calling LLM again
fake_response
=
None
fake_response
=
None
if
not
app_model_config
.
pre_prompt
and
agent_execute_result
and
agent_execute_result
.
output
\
if
not
app_model_config
.
pre_prompt
and
agent_execute_result
and
agent_execute_result
.
output
\
and
agent_execute_result
.
strategy
!=
PlanningStrategy
.
ROUTER
:
and
agent_execute_result
.
strategy
not
in
[
PlanningStrategy
.
ROUTER
,
PlanningStrategy
.
REACT_ROUTER
]
:
fake_response
=
agent_execute_result
.
output
fake_response
=
agent_execute_result
.
output
# get llm prompt
# get llm prompt
...
...
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