Y
Hacker News
new
|
ask
|
show
|
jobs
by
basch
53 days ago
I am saying to directly output the operational transformation instructions as the tokens. You’re essentially telling it to “write the diff” and then applying the patch.
[retain(8), delete(6), insert("very very"), retain(10)]
2 comments
mike_hearn
53 days ago
OpenAI models emit a format similar to a regular diff, but without the line numbers. Look at apply_patch
link
ritonlajoie
53 days ago
there is a model in openrouter doing exactly this, it generates diffs. forgot the name though
link