fix: drop useless logic (#26678)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong 2025-10-10 12:59:28 +08:00 committed by GitHub
parent 5d3e8a31d0
commit 54db4c176a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: