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
8af0e837
Commit
8af0e837
authored
Mar 04, 2024
by
takatost
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo
parent
38b2e383
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cot_agent_runner.py
api/core/agent/cot_agent_runner.py
+1
-1
fc_agent_runner.py
api/core/agent/fc_agent_runner.py
+1
-1
No files found.
api/core/agent/cot_agent_runner.py
View file @
8af0e837
...
...
@@ -132,7 +132,7 @@ class CotAgentRunner(BaseAgentRunner):
input
=
query
)
# recal
e
llm max tokens
# recal
c
llm max tokens
self
.
recalc_llm_max_tokens
(
self
.
model_config
,
prompt_messages
)
# invoke model
chunks
:
Generator
[
LLMResultChunk
,
None
,
None
]
=
model_instance
.
invoke_llm
(
...
...
api/core/agent/fc_agent_runner.py
View file @
8af0e837
...
...
@@ -107,7 +107,7 @@ class FunctionCallAgentRunner(BaseAgentRunner):
messages_ids
=
message_file_ids
)
# recal
e
llm max tokens
# recal
c
llm max tokens
self
.
recalc_llm_max_tokens
(
self
.
model_config
,
prompt_messages
)
# invoke model
chunks
:
Union
[
Generator
[
LLMResultChunk
,
None
,
None
],
LLMResult
]
=
model_instance
.
invoke_llm
(
...
...
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