mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
Fixed premature reference to self.root #801
This commit is contained in:
parent
31e2c6d014
commit
570519e91d
1 changed files with 1 additions and 2 deletions
|
@ -1362,8 +1362,7 @@ class Coder:
|
|||
|
||||
tokens = 0
|
||||
for fname in self.abs_fnames:
|
||||
relative_fname = self.get_rel_fname(fname)
|
||||
if is_image_file(relative_fname):
|
||||
if is_image_file(fname):
|
||||
continue
|
||||
content = self.io.read_text(fname)
|
||||
tokens += self.main_model.token_count(content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue