Pluviophile (Discord) said the 终结点 beside /v1/responses in a request's
details reads like machine translation. 终结点 was the zh word for the
"Endpoint" key, used by the Requests tab's details, the Azure OpenAI and
Remote magpie editors' field and the S3 sync form, and by four Azure
strings. All of them now say 接口地址 (the address a request goes to).
Not 端点, which the rest of zh uses for "Endpoints": the Azure editor
shows both labels at once, and with 端点 for both the zh editor had two
labels named the same (the Azure test counted 2). zh-TW had that clash
already ("Endpoint" and "Endpoints" both 端點), so its field is now
端點位址; zh-TW's other wording is unchanged. Azure portal's own blade name,
「密钥和终结点」, stays as Azure writes it.
Tests: azure-endpoint now runs zh-TW too, and its one-label count is what
caught the 端点 clash.
Run on mote at this head, chromium + webkit: i18n-keys, azure-endpoint
(en, zh, zh-TW), usage-ledger-detail, s3-sync, remote-magpie. 44 pass,
8 fail; the same 8 fail at origin/main b2f7818d2 run beside it:
remote-magpie (#4398, red on macOS too, en and zh) and s3-sync in WebKit
(#2448).
Broken by hand: with 端点 for "Endpoint", azure-endpoint zh was red
(label count 2 != 1).
Not tried: the real app's windows; ja and de untouched.
Adding Azure OpenAI asked only for the endpoint and key. Nothing said that,
once it is saved, magpie asks the resource for its deployments with that
key (Provider.azureModels), so people took the page for one where model ids
must be typed. A saved one whose list hadn't come back yet said "The
vendor's list is empty", the same as one asked and empty.
- The endpoint hint (presets.go) now says magpie asks the resource for its
deployments with this key once added, and the deployments' names are the
model ids.
- The add page has a Models row for Azure: nothing to type; a deployment's
name is typed as a model id only if the list can't be fetched.
- A saved Azure provider with an empty list says it is asking the resource
with this key while the background fetch runs (providers.fetching, not
yet fetched, no list error), and after it that no deployments came back,
with Fetch again or a deployment's name. Every other provider's empty
text is unchanged.
- New strings in zh, zh-TW, ja and de.
azureModels itself is unchanged.
Run: azure-endpoint.test.cjs (24 pass, Chromium and WebKit, en and zh),
extended with the add page's Models row and four empty-list cases (asking,
asked and none, asked and failed, OpenRouter unchanged). With the old
app.js put back it fails 10 of 12 on Chromium (no .azure-models row, the
generic empty text). With the old i18n.js the zh cases fail (6 of 12).
gui-de, gui-ja, gui-zh-tw, i18n-keys, provider-fetch-again,
provider-picks-stay, add-sheet: 34 pass in each engine. go test -tags nogui
./internal/provider ./internal/gui ok under a sandbox HOME; gofmt -l clean;
GOOS=linux and GOOS=windows go vet -tags nogui on both packages clean.
Not tried against a real Azure resource (no account): only the text
changed, not the fetch.
azure-endpoint.test.cjs read the two fields' boxes one after the other
while the new editor was still opening, so each read could catch it at a
different height, and "the endpoint above the key" failed in Chromium on a
loaded machine (2 and 3 of 3 runs at load ~130). remote-magpie.test.cjs
had the same check and already reads both in one frame (a998a3636); this
does the same here.
Run: azure-endpoint.test.cjs 5 of 5 green in Chromium and green in WebKit
at the same load.