mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +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
|
tokens = 0
|
||||||
for fname in self.abs_fnames:
|
for fname in self.abs_fnames:
|
||||||
relative_fname = self.get_rel_fname(fname)
|
if is_image_file(fname):
|
||||||
if is_image_file(relative_fname):
|
|
||||||
continue
|
continue
|
||||||
content = self.io.read_text(fname)
|
content = self.io.read_text(fname)
|
||||||
tokens += self.main_model.token_count(content)
|
tokens += self.main_model.token_count(content)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue