# assistant2: Add affordances for when the selected model does not support tools \(\#27870\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5d1695ed1d0a2fafac48b7409b71f9cdecb3c670

Requested commit: 5d1695ed1d0a2fafac48b7409b71f9cdecb3c670

Commit: 5d1695ed1d0a2fafac48b7409b71f9cdecb3c670

Tree: 929f7b4201ca3f08f1c60145a96a115e4a1b1e3b

Author: Marshall Bowers

Committer: GitHub

## Message

```
assistant2: Add affordances for when the selected model does not support tools (#27870)

This PR adds some affordances for when the currently-selected model does
not support tools.

We disable the profile selector and put it into a "No Tools" state:

<img width="1394" alt="Screenshot 2025-04-01 at 3 58 00 PM"
src="https://github.com/user-attachments/assets/de6ecb0f-7657-4e16-9d5d-7bbfbc2b0a5c"
/>

We will also only attach tools to the request to the model if the model
supports it.

Release Notes:

- N/A
```

## Parents

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

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