This commit is contained in:
Paul Gauthier 2024-08-30 06:50:41 -07:00
parent 0dfedecff5
commit 7a72c80605

View file

@ -59,6 +59,10 @@ class WholeFileCoder(Coder):
fname = fname.rstrip(":")
fname = fname.strip("`")
# Issue #1232
if len(fname) > 250:
fname = ""
# Did gpt prepend a bogus dir? It especially likes to
# include the path/to prefix from the one-shot example in
# the prompt.