from aider.coder import Coder
fnames=[“file2.py”,”file2.py”,”file3.py”,”file4.py”]
coder = Coder.create(main_model=model, fnames=fnames)
coder.run(“some prompt”)
So in this when fnames length is greater than 3, following error is being thrown:
File “pathmy_venvLibsite-packagesaidercodersbase_coder.py”, line
1035, in get_rel_fname
return os.path.relpath(fname, self.root)
^^^^^^^^^
AttributeError: ‘EditBlockCoder’ object has no attribute ‘root’
If the length of fnames is less than or equal to 3 it works fine.
Is there any way to add more than 3 files to fnames?
koushtubh vikramaditya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.