logoalt Hacker News

baschyesterday at 8:27 PM2 repliesview on HN

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)]


Replies

mike_hearntoday at 9:01 AM

OpenAI models emit a format similar to a regular diff, but without the line numbers. Look at apply_patch

ritonlajoieyesterday at 11:48 PM

there is a model in openrouter doing exactly this, it generates diffs. forgot the name though