# assistant2: Add \`Thread::send_to_model\` method \(\#25703\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9822d9673c00b914167a85ef0d7756a331af70f2

Requested commit: 9822d9673c00b914167a85ef0d7756a331af70f2

Commit: 9822d9673c00b914167a85ef0d7756a331af70f2

Tree: ced8455f828b8852bab5cecc7d606e809360c5b3

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant2: Add `Thread::send_to_model` method (#25703)

This PR adds a new `send_to_model` method to the `Thread` to encapsulate
more of the thread-specific capabilities.

We then call this in `MessageEditor::send_to_model`.

Release Notes:

- N/A
```

## Parents

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

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