# decrease temperature for inline assist on code content \(\#3145\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9c491910319a47206d9bba93f9e221eee9dfbe5a

Requested commit: 9c491910319a47206d9bba93f9e221eee9dfbe5a

Commit: 9c491910319a47206d9bba93f9e221eee9dfbe5a

Tree: 862fbfc55ee7382f134daf06c2860a2a9efe3dce

Author: Kyle Caverly

Committer: GitHub

## Message

```
decrease temperature for inline assist on code content (#3145)

"Temperature" is a parameter in OpenAI GPT models, to control for
randomess in the generated content. To decrease the probability of
either escaping the markdown blocks and creating invalid code, we
decreased temperature for all Non-Prose files. For Markdown or Plain
Text, in which more creativity may be a good thing, we increase the
temperature to allow for more randomness. Along with this, we ask the
generate inline prompt to include only the code and not markdown blocks,
as it appears that lower temperature may decrease the probability of
introducing random markdown blocks.

Release Notes (Internal Only):
- Decrease temperature for inline assist on code content.
```

## Parents

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

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

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