# Add conditional check for \`auto_discover\` in Ollama provider \(\#55999\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 954ac0f3cac79178e76d498a7a1456b25df48aeb

Requested commit: 954ac0f3cac79178e76d498a7a1456b25df48aeb

Commit: 954ac0f3cac79178e76d498a7a1456b25df48aeb

Tree: b7f409237d6ff2fa75c7bb21ddc04478bdd5d633

Author: Teslim Olunlade

Committer: GitHub

## Message

```
Add conditional check for `auto_discover` in Ollama provider (#55999)

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 #55998

Release Notes:

- ollama: Fixed issue where specifying `auto_discover: false` would
still auto discover models
```

## Parents

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

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