# Implement simpler logic for edit predictions prompt byte limits \(\#23983\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 87b0f62041a9bdcd22596002972c36b174bc9f60

Requested commit: 87b0f62041a9bdcd22596002972c36b174bc9f60

Commit: 87b0f62041a9bdcd22596002972c36b174bc9f60

Tree: 5175c256c24eb384dd8f59e308f89cd397bc7ecc

Author: Michael Sloan

Committer: GitHub

## Message

```
Implement simpler logic for edit predictions prompt byte limits (#23983)

Realized that the logic in #23814 was more than needed, and harder to
maintain. Something like that could make sense if using the tokenizer
and wanting to precisely hit a token limit. However in the case of edit
predictions it's more of a latency+expense vs capability tradeoff, and
so such precision is unnecessary.

Happily this change didn't require much extra work, just copy-modifying
parts of that change was sufficient.

Release Notes:

- N/A
```

## Parents

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

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