Refactor Coder creation to use file name instead of string representation

This commit is contained in:
Paul Gauthier 2024-07-29 17:05:20 -03:00 committed by Paul Gauthier (aider)
parent 775dd9e6b8
commit b69bf02115

View file

@ -717,7 +717,7 @@ two
# Create the first coder
io = InputOutput(yes=True)
coder1 = Coder.create(self.GPT35, None, io=io, fnames=[str(test_file)])
coder1 = Coder.create(self.GPT35, None, io=io, fnames=[test_file.name])
# Create a new coder from the first coder
coder2 = Coder.create(from_coder=coder1)