# ai: Auto select user model when there's no default \(\#36722\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b349a8f34c9bbd2297633aae820bf8432b4f9c63

Requested commit: b349a8f34c9bbd2297633aae820bf8432b4f9c63

Commit: b349a8f34c9bbd2297633aae820bf8432b4f9c63

Tree: 42a0d91a0ada28a7c700a78840a7f73eb7ed3d58

Author: Anthony Eid

Committer: GitHub

## Message

```
ai: Auto select user model when there's no default (#36722)

This PR identifies automatic configuration options that users can select
from the agent panel. If no default provider is set in their settings,
the PR defaults to the first recommended option. Additionally, it
updates the selected provider for a thread when a user changes the
default provider through the settings file, if the thread hasn't had any
queries yet.

Release Notes:

- agent: automatically select a language model provider if there's no
user set provider.

---------

Co-authored-by: Michael Sloan <michael@zed.dev>
```

## Parents

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

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