ac4af582301a4e8a29245dbba767eba31334ddf9
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3587bf70e2 |
providers: a plugin account's Select all available ticks its own list; zcode min 0.1.51 (young02036)
young02036 on Discord: their two ZCode accounts in magpie, one with no GLM Coding Plan whose Start Plan holds glm-5.3-flash and one subscribed whose gift shows as glm-5.3-flash-trial, failed while the ZCode app worked; picking each account's usable models by hand worked. They also said ticking the available models by default didn't work. - zcode mover min 0.1.51: the plugin now lists for a gift-only account only the models its Start Plan balance names, as ZCode 3.17.2 offers it, not every model of the Start Plan config, so routing stops sending GLM-5.2 or GLM-5-Turbo to an account that holds only GLM-5.3-Flash (plugins c96d04bb, npm 0.1.51 checked with --prefer-online). - Select all available in an account's model picker ticked every model shown for a signed-in account. provider/keylisted now answers for a plugin's account with the models its plugin lists for that account (plugin.Account.Models, by the provider's listed ids), and the picker asks it for accounts as for keys. An account the plugin keeps no list for (one account has them all) or doesn't have is unknown, which still ticks every model shown; a non-plugin account is unchanged in effect. The account title says so, translated in zh, zh-TW, ja and de. Run on mote: - go test ./internal/provider -run 'TestKeyListed|TestPluginAccountModels': TestKeyListedIsAPluginAccountsOwnList red on the old code (the key account's list: [], want [fake-1]), green after. - node --test account-models-available.test.cjs (chromium + webkit, en zh zh-TW ja de, 900 and 420px): with the old app.js the new plugin account case and the Codex case (now asks keylisted) are red; green after. i18n-keys green. - go test ./internal/gui -run Budget, go test ./internal/provider (whole package), GOOS=windows go vet of both packages, GOOS=linux go vet of internal/provider (internal/gui's wails needs cgo for a Linux vet from mac), gofmt. Not tried: a real ZCode account (none available); whether the 3012s young02036 saw came from these requests is not proven; the whole GUI suite (only this picker's file and i18n-keys). |
||
|
|
dd50cbba25 |
provider: a key's or account's model picker has Select all available (young02036)
young02036 on Discord (after |