Show recommended models under normal category too (#42489)
<img width="395" height="444" alt="Screenshot 2025-11-11 at 4 04 57 PM" src="https://github.com/user-attachments/assets/8da68721-6e33-4d01-810d-4aa1e2f3402d" /> Discussed with @danilo-leal and we're going with the "it's checked in both places" design! Closes #40910 Release Notes: - Recommended AI models now still appear in their normal category in addition to "Recommended:"
This commit is contained in:
@@ -133,9 +133,7 @@ impl LanguageModels {
|
||||
for model in provider.provided_models(cx) {
|
||||
let model_info = Self::map_language_model_to_info(&model, &provider);
|
||||
let model_id = model_info.id.clone();
|
||||
if !recommended_models.contains(&(model.provider_id(), model.id())) {
|
||||
provider_models.push(model_info);
|
||||
}
|
||||
provider_models.push(model_info);
|
||||
models.insert(model_id, model);
|
||||
}
|
||||
if !provider_models.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user