# open_router: Avoid redundant model list downloads \(\#33033\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3b31db1b1ff5451fa7172277d07f7cf27e77c151

Requested commit: 3b31db1b1ff5451fa7172277d07f7cf27e77c151

Commit: 3b31db1b1ff5451fa7172277d07f7cf27e77c151

Tree: 3b8abccff38d85c84527a5bf08a33a9d05fb3dc9

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
open_router: Avoid redundant model list downloads (#33033)

Previously, the OpenRouter models list (~412kb) was being downloaded
around 10 times during startup -- even when OpenRouter was not
configured.

This update addresses the issue by:

1. Fetching the models list only when OpenRouter settings change.
2. Skipping API calls if OpenRouter is not configured.


Release Notes:

- Avoid unnecessary requests to OpenRouter
```

## Parents

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

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