path/to not /path/to

This commit is contained in:
Paul Gauthier 2023-06-24 20:10:17 -07:00
parent b1cdb9d488
commit fe1d7aa887

View file

@ -66,7 +66,7 @@ class WholeFileCoder(Coder):
# fname==None ... starting a new block
if i > 0:
fname = lines[i - 1].strip()
path_to = "/path/to/"
path_to = "path/to/"
# gpt-3.5 will sometimes crib /path/to from the one-shot example
if fname.startswith(path_to) and fname not in chat_files:
fname = fname[len(path_to) :]