# language_models: Prevent sending the tools object to unsupported models for Ollama \(\#37221\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 63b3839a83984a48ef57e96253f3602c16cf22b3

Requested commit: 63b3839a83984a48ef57e96253f3602c16cf22b3

Commit: 63b3839a83984a48ef57e96253f3602c16cf22b3

Tree: f47c38bdf5f551372eda330bc38c0ff1cb9dfe50

Author: Umesh Yadav

Committer: GitHub

## Message

```
language_models: Prevent sending the tools object to unsupported models for Ollama (#37221)

Closes #32758

Release Notes:

- Resolved an issue with the Ollama provider that caused requests to
fail with a 400 error for models that don't support tools. The tools
object is now only sent to compatible models to ensure successful
requests.
```

## Parents

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

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