From 97f2b6f7360117355b46da6436e7f88ecfbd16c8 Mon Sep 17 00:00:00 2001 From: kkan9ma Date: Tue, 20 May 2025 15:29:27 +0900 Subject: [PATCH] Fix TypeError --- pr_agent/algo/token_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/algo/token_handler.py b/pr_agent/algo/token_handler.py index 8bd3f115..0a1aeb89 100644 --- a/pr_agent/algo/token_handler.py +++ b/pr_agent/algo/token_handler.py @@ -167,7 +167,7 @@ class TokenHandler: encoder_estimate = len(self.encoder.encode(patch, disallowed_special=())) if force_accurate: - return self.get_token_count_by_model_type(patch, encoder_estimate=encoder_estimate) + return self.get_token_count_by_model_type(patch, encoder_estimate) # If an estimate is enough (for example, in cases where the maximal allowed tokens is way below the known limits), return it. return encoder_estimate