providers: the id beside a model's name in Names & levels is its own, not the one it is Listed as
axelburks on Discord: once a model is Listed as another id in its
provider's Names & levels, the read-only id after its name showed the
listed id, and the id the provider is asked for was gone from the
editor. The row drew m.id, which for a listed model is the id it is
listed by; the provider's own id is in m.vendor (modelJSON sets it when
the two differ). The box now shows m.vendor || m.id. The Listed as field
still holds the listed id, and every agent still sees the listed one.
Run at this head (mote, Playwright 1.62.0): the 21 GUI files that draw
or read a Names & levels row (provider-listed-as, provider-same-as,
provider-levels-save, provider-levels-scroll, names-fold, name-suffix-*,
model-price-*, model-api-*, provider-detect*, vision-not-marked,
readable-focus, ux-safety, inner-scroll-contain, models-select-all-api,
model-reasonless), each in Chromium and WebKit and in every language the
file covers: 309 of 310 pass. The one red is provider-levels-scroll in
WebKit (760 !== 644), red 3 of 3 alone at origin/main 96acc59c4 without
this change too; it is #4395 (filed for WSL, now seen on macOS).
Broken by hand: with m.id back, provider-listed-as's new check that the
row shows grok-4.6@500k (listed as grok-4.6) fails in every engine and
language.
Not tried: the real app with a real provider; the fixture's listed
model is what the GUI is handed.
This commit is contained in:
@@ -11391,7 +11391,10 @@ function renderModels(p) {
|
||||
};
|
||||
name.onkeydown = (e) => { e.stopPropagation(); if (e.key === "Enter") name.blur(); else if (e.key === "Escape") { name.value = nameNow(); name.blur(); } };
|
||||
const who = el("div", "mwho");
|
||||
who.append(name, el("code", "", m.id));
|
||||
// its own id, the one its provider is asked for, even once it is
|
||||
// listed by another here (axelburks on Discord: the box after the
|
||||
// name showed the Listed as id, and the model's own was gone)
|
||||
who.append(name, el("code", "", m.vendor || m.id));
|
||||
row.append(who);
|
||||
// the model of other providers' it is, for the routing groups magpie
|
||||
// finds, when its id is one no rule matches up with theirs
|
||||
|
||||
@@ -70,6 +70,9 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
|
||||
assert.equal(await box("deepseek-v4.1-flash-1017").getAttribute("placeholder"), "deepseek-v4.1-flash-1017");
|
||||
assert.equal(await box("grok-4.6").inputValue(), "grok-4.6");
|
||||
assert.equal(await box("grok-4.6").getAttribute("placeholder"), "grok-4.6@500k");
|
||||
// the id beside its name is its own, not the one it is listed by
|
||||
// (axelburks on Discord)
|
||||
assert.deepEqual(await page.locator(".mname .mwho code").allTextContents(), ["deepseek-v4.1-flash-1017", "grok-4.6@500k"]);
|
||||
const list = await page.locator(".mnames:not([hidden])").elementHandle();
|
||||
const y = await page.evaluate(() => scrollY);
|
||||
await box("deepseek-v4.1-flash-1017").fill("deepseek-v4.1-flash");
|
||||
|
||||
Reference in New Issue
Block a user