# Fix title generation when using openai models via subscription \(\#56858\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4e06b33eb9f292507c98e4a143438c1c3d8a2b5b

Requested commit: 4e06b33eb9f292507c98e4a143438c1c3d8a2b5b

Commit: 4e06b33eb9f292507c98e4a143438c1c3d8a2b5b

Tree: 6022765471d39d34fd753fb2c15c8ef3b1f202a7

Author: Jiby Jose

Committer: GitHub

## Message

```
Fix title generation when using openai models via subscription (#56858)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes: #56857 Title generation failing on agent threads with OpenAI
models from subscription

Currently title generation requests are made without any system prompt
which causes instructions to be not set, and the request fails. This
change makes sure there is always instructions set (api does not seem to
care if its empty or not)

Release Notes:

- N/A
```

## Parents

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

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