# prompts: Improve inline assist prompt to reduce garbage from smaller models \(\#38278\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d1543f75b68cc6eb42d3ef8b95012a0404976e2b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d1543f75b68cc6eb42d3ef8b95012a0404976e2b

Requested commit: d1543f75b68cc6eb42d3ef8b95012a0404976e2b

Commit: d1543f75b68cc6eb42d3ef8b95012a0404976e2b

Tree: 9c74ad5325bb6a0f93b864700569071265e6dd5b

Author: Andreas Johansson

Committer: GitHub

## Message

```
prompts: Improve inline assist prompt to reduce garbage from smaller models (#38278)

Closes #24412 and #19471

I tested both insertion and replacing with o3-mini and it failed with
the current prompt. With the updated prompt it does no longer return
`<document><rewrite_this>` or `{{REWRITTEN_CODE}}`

I have ensured the LLM Worker works with these prompt changes.

Release Notes:

- Improved prompting for the inline assistant
```

## Parents

- [fc0b2491365cb547814880b687d5f0bda54f488c](https://git.cafe/gitcafe/zed/commit/fc0b2491365cb547814880b687d5f0bda54f488c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d1543f75b68cc6eb42d3ef8b95012a0404976e2b?format=markdown)
