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
34387ec0
Unverified
Commit
34387ec0
authored
Mar 04, 2024
by
cola
Committed by
GitHub
Mar 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typo recale to recalc (#2670)
parent
83a6b0c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
assistant_cot_runner.py
api/core/features/assistant_cot_runner.py
+1
-1
assistant_fc_runner.py
api/core/features/assistant_fc_runner.py
+1
-1
No files found.
api/core/features/assistant_cot_runner.py
View file @
34387ec0
...
...
@@ -130,7 +130,7 @@ class AssistantCotApplicationRunner(BaseAssistantApplicationRunner):
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/features/assistant_fc_runner.py
View file @
34387ec0
...
...
@@ -105,7 +105,7 @@ class AssistantFunctionCallApplicationRunner(BaseAssistantApplicationRunner):
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