Skip to content

Commit

Permalink
align the project
Browse files Browse the repository at this point in the history
  • Loading branch information
adamyodinsky committed Mar 15, 2023
1 parent d59c5c9 commit 5956cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminalgpt/chat_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def exceeding_token_limit(total_usage: int, token_limit: int):


def reduce_tokens(messages: list, token_limit: int, total_usage: int):
"""Reduce tokens in messages until exceeding_token_limit is False."""
"""Reduce tokens in messages context."""

while exceeding_token_limit(total_usage, token_limit):
reduce_amount = total_usage - token_limit + 100
Expand Down

0 comments on commit 5956cc9

Please sign in to comment.