# assistant2: Handle LLM providers that do not emit \`StartMessage\` events \(\#23485\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2c2a3ef13d0393c8aa0018feb6052c6f02795986

Requested commit: 2c2a3ef13d0393c8aa0018feb6052c6f02795986

Commit: 2c2a3ef13d0393c8aa0018feb6052c6f02795986

Tree: 154bb2f067b8d8b56a5d8b1b4b4c765ce2eaa560

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant2: Handle LLM providers that do not emit `StartMessage` events (#23485)

This PR updates Assistant2's response streaming to work with LLM
providers that do not emit `StartMessage` events.

Now if we get a `Text` event without having received a `StartMessage`
event we will still insert an Assistant message so we can stream in the
response from the model.

Release Notes:

- N/A
```

## Parents

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

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