water5433 (cduyzh) on Discord asked for Test models to say which
account a test uses. Their patch added "Tests use the preferred
account/key by default." to the button's tooltip for every provider,
in en, zh and zh-TW. Taken reworded, because it didn't say what the
code does:
- There is no "preferred" key and no other choice of one: TestModels
(keySeeing in internal/provider/test.go) sends each model with the
first ticked key that serves it, made for its endpoint first, so a
key that doesn't see the model is skipped. "By default" promised a
choice the editor doesn't have.
- A subscription account is a provider of its own, so "account" only
confused it; and with one key, or none, there is nothing to say.
So the line, "Each model is tested with the first ticked key that can
serve it", shows only when more than one key is ticked, in en, zh,
zh-TW, ja and de (theirs had no ja or de, and zh-TW said 默認 where
zh-TW says 預設; it now follows the key list's own 勾選/金鑰 words).
app.js stays in the core budget without a raise: the line's comment
and two comments beside it (modelTestWhy, modelTests, testOne) were
cut down.
Test: test-models-key-hint.test.cjs, every language, Chromium and
WebKit, 900 and 390 wide: with two keys ticked the tooltip has the
line, and still has it after a test run puts the title back; with one
of two ticked, and with no key list, it doesn't.
Run (mote-run, at this commit on origin/main 12599e9cd):
- test-models-key-hint: 20/20; with status-long, model-test-one,
account-models, key-plan and i18n-keys: 114/114 in both engines.
- go test -tags nogui ./internal/gui: ok (TestCoreScriptBudget: core 1,533,793 of 1,533,802).
- Broken by hand in Chromium: no line 0/10; the line on whatever keys
are ticked red ("One on: no key to choose, no hint").
Not tried: the real app with a real multi-key provider.
Co-authored-by: cduyzh <cduyzh@users.noreply.github.com>