Skip to content

Conversation

@menezesandre
Copy link

The sized variable is sliced to the head messages (sized = sized[:split_index]), but then it is used to compute tail_tokens = sum(tokens for tokens, msg in sized[split_index:]). At this point, sized[split_index:] is an empty list, meaning that tail_tokens is always 0 and the tail messages are not considered for the token limit.

@menezesandre
Copy link
Author

#3764

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants