# language_models: Dynamically detect Copilot Chat models \(\#29027\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f14e48d20293499227f82a5db083c18d8f68f047

Requested commit: f14e48d20293499227f82a5db083c18d8f68f047

Commit: f14e48d20293499227f82a5db083c18d8f68f047

Tree: 15d5ec3f3be10a69a9960161071806bbd88bafe0

Author: Liam

Committer: GitHub

## Message

```
language_models: Dynamically detect Copilot Chat models (#29027)

I noticed the discussion in #28881, and had thought of exactly the same
a few days prior.

This implementation should preserve existing functionality fairly well.

I've added a dependency (serde_with) to allow the deserializer to skip
models which cannot be deserialized, which could occur if a future
provider, for instance, is added. Without this modification, such a
change could break all models. If extra dependencies aren't desired, a
manual implementation could be used instead.

- Closes #29369 

Release Notes:

- Dynamically detect available Copilot Chat models, including all models
with tool support

---------

Co-authored-by: AidanV <aidanvanduyne@gmail.com>
Co-authored-by: imumesh18 <umesh4257@gmail.com>
Co-authored-by: Bennet Bo Fenner <bennet@zed.dev>
Co-authored-by: Agus Zubiaga <hi@aguz.me>
```

## Parents

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

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