Files
oak-gpui/crates
Umesh Yadav 1f37fbd051 language_models: Use /models/user for fetching OpenRouter models (#37534)
This PR switches the OpenRouter integration from fetching all models to
fetching only the models specified in the user's account preferences.
This will help improve the experience

**The Problem**

The previous implementation used the `/models` endpoint, which returned
an exhaustive list of all models supported by OpenRouter. This resulted
in a long and cluttered model selection dropdown in Zed, making it
difficult for users to find the models they actually use.

**The Solution**

We now use the `/models/user` endpoint. This API call returns a curated
list based on the models and providers the user has selected in their
[OpenRouter dashboard](https://openrouter.ai/models).

Ref: [OpenRouter API Docs for User-Filtered
Models](https://openrouter.ai/docs/api-reference/list-models-filtered-by-user-provider-preferences)

Release Notes:

- language_models: Support OpenRouter user preferences for available
models
2025-09-06 07:42:15 +02:00
..
2025-09-03 22:10:14 +00:00
2025-08-13 13:25:52 -06:00
2025-09-03 22:10:14 +00:00
2025-09-06 00:27:14 +02:00
2025-08-19 20:33:44 +00:00
2025-09-06 01:36:36 +02:00
2025-07-17 14:25:55 +00:00
2025-07-08 14:34:57 +00:00
2025-09-05 17:34:39 +00:00
2025-09-05 09:52:57 -07:00