mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-11 18:35:18 +00:00
disabling encoding error on special_tokens
This commit is contained in:
parent
74dfae8dbe
commit
259fa84eeb
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