2 ms·
How would ed help? Say one of the files is talk.py and there is a function inside of it at line 17 which the LLM wants to change: 17 def hello(): 18
by mg 3y ago
How would ed help?
Say one of the files is talk.py and there is a function inside of it at line 17 which the LLM wants to change:
17 def hello():
18 print ("Hello!")
My approach would be to provide the LLM with a swap command, which takes filename, first line and last line and then treats the rest of the standard input as the new content:
swap talk.py 17 18
def hello(name):
print(f"Hello {name}!")
My feeling is that this is the most efficient way for an LLM to code.