mirror of
https://github.com/langgenius/dify.git
synced 2025-11-30 12:53:33 +00:00
fix: drop useless logic (#26678)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
5d3e8a31d0
commit
54db4c176a
@ -61,9 +61,6 @@ class AppRunner:
|
||||
if model_context_tokens is None:
|
||||
return -1
|
||||
|
||||
if max_tokens is None:
|
||||
max_tokens = 0
|
||||
|
||||
prompt_tokens = model_instance.get_llm_num_tokens(prompt_messages)
|
||||
|
||||
if prompt_tokens + max_tokens > model_context_tokens:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user