fix: 'curr_message_tokens' where it is not associated with a value #25307 (#25308)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
qxo 2025-09-08 09:59:53 +08:00 committed by GitHub
parent 16a3e21410
commit 593f7989b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,6 +124,7 @@ class TokenBufferMemory:
messages = list(reversed(thread_messages))
curr_message_tokens = 0
prompt_messages: list[PromptMessage] = []
for message in messages:
# Process user message with files