Require friendly names for live catalog models

Co-authored-by: Simon Shi <simonsmh@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-08-31 17:12:20 +00:00
co-authored by Simon Shi
parent 10ab666f31
commit dc8b9afad2
2 changed files with 23 additions and 2 deletions
+2 -2
View File
@@ -626,9 +626,9 @@ export async function updateQoderModelsCache(
for (const entry of chatModels) {
const key = entry.key;
if (!key || !entry.enable) continue;
if (!key || !entry.enable || !entry.display_name) continue;
const display = entry.display_name || key;
const display = entry.display_name;
// Prefer the largest selectable context option the catalog advertises
// (e.g. 1M when 200K/400K/1M are offered). If none is advertised, use
// DEFAULT_CONTEXT_WINDOW rather than the stale 180K `max_input_tokens`