mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Merge pull request #7 from Codium-ai/algo/fix_speacial_tokens
Fix encoding error on special_tokens
This commit is contained in:
commit
1eea60c6a5
1 changed files with 1 additions and 1 deletions
|
|
@ -21,4 +21,4 @@ class TokenHandler:
|
|||
return system_prompt_tokens + user_prompt_tokens
|
||||
|
||||
def count_tokens(self, patch: str) -> int:
|
||||
return len(self.encoder.encode(patch))
|
||||
return len(self.encoder.encode(patch, disallowed_special=()))
|
||||
Loading…
Reference in a new issue