# open_ai: Make the deltas optional \(\#39142\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 27a18843d4191b05dc582c302b4d82c0c42f48d2

Requested commit: 27a18843d4191b05dc582c302b4d82c0c42f48d2

Commit: 27a18843d4191b05dc582c302b4d82c0c42f48d2

Tree: f977ac1eb9f4598a7922bc2073b6f17c0f8eb090

Author: Techy

Committer: GitHub

## Message

```
open_ai: Make the deltas optional (#39142)

I am using an Azure OpenAI instance since that is what is provided at
work and with how they have it setup not all responses contain a delta,
which lead to errors and truncated responses. This is related to how
they are filtering potentially offensive requests and responses. I don't
believe this filter was made in-house, instead I believe it is provided
by Microsoft/Azure, so I suspect this fix may help other users.

Release Notes:

- N/A

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

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

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