Strip asterisks from filenames suggested by GPT-3.5 #157 #168

This commit is contained in:
Paul Gauthier 2023-08-02 06:58:59 -03:00
parent f24c04320e
commit 1858f0504b

View file

@ -62,6 +62,8 @@ class WholeFileCoder(Coder):
if i > 0:
fname_source = "block"
fname = lines[i - 1].strip()
fname = fname.strip("*") # handle **filename.py**
# Did gpt prepend a bogus dir? It especially likes to
# include the path/to prefix from the one-shot example in
# the prompt.