7b42e404f5f656d7bfb4aa5c7ddbcd1031264a86
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
bf302fab7d |
minimax 0.2.4: generate_image takes the catalog's area, n, output_format and reference_images (#955)
hokaii6990-boop (Windows 11, magpie 0.1.3654, plugin 0.2.3, CN site):
`magpie tool minimax_generate_image --requests '{"prompt":"...","area":"2K"}'`
answered "bad arguments: arguments.requests[0].area is not an accepted
argument", while the account's catalog schema has area, and
minimax_call_tool with the same arguments generated the image.
Our first reply said execute checks against the catalog's
input_schema_json. It does, but createConnectorTools wraps every tool's
execute in checked(t.args, args) first, and a named Matrix tool's args
are the bundled matrix-tools.json copy (2026-11-03: resolution,
input_urls, a six-value aspect_ratio). So that check refused the call
before the catalog was ever read.
- A named Matrix tool's call is now checked up front only for its two
routing fields (site, account). Its own arguments are checked once, in
execute, against the catalog entry's input_schema_json, and against the
bundled copy only when the catalog gives none. A parameter MiniMax adds
later passes without a plugin release. A priced call still never goes
out with bad arguments; the catalog read now comes first.
list_tools, tool_schema and call_tool keep their up-front check.
- The refusal names whose schema it was: "(checked against the account's
catalog schema for connector__matrix__generate_image)", or the bundled
one when the catalog gave none.
- matrix-tools.json's generate_image input_schema is the reporter's
pasted `minimax_tool_schema --json` output, byte for byte after JSON
parsing (kept as testdata/generate-image-schema-955.json). It is what
agents are shown. Its description says reference_images, not
input_urls. The other 15 tools' copies are unchanged; no fresher
bytes for them.
- README says calls are checked against the live catalog.
Run:
- wsl-run (magpie-desktop, Bun 1.4.2), HOME=$(mktemp -d):
bun test packages/minimax 148 pass 0 fail; bun scripts/check.mjs exit 0.
- win-run (xiaomi-gpu Windows 11, Bun 1.4.2), HOME and USERPROFILE a
fresh temp dir: bun test packages/minimax 148 pass 0 fail;
bun scripts/check.mjs exit 0.
- Broken by hand (wsl-run, connector-tools.test.mjs):
- 0.2.3's code and bundle: 5 red, among them the area/n/output_format/
reference_images call.
- New code with 0.2.3's bundle: only the bundled-copy test red; the
area call passes, held to the catalog.
- New bundle with the old up-front check: 3 red (the catalog's
refusal message, the no-schema fallback message, and a refusal that
now reads the catalog first).
Not tried: no MiniMax Code account here, so no real generation; the
schema is the reporter's, from one CN-site account. The global site's
catalog was not seen. Codex desktop refusing area from the advertised
schema (the reporter's second path) was not reproduced; the refreshed
copy covers it for these fields. The get_asset_url /visible/ watermark
note is split out to #974.
Reported-by: hokaii6990-boop
Refs #955
|
||
|
|
24da52b8ca |
minimax 0.2.3: a China-site account call agent.minimaxi.com can't be reached goes once to agent.minimax.cn (#757)
youyo.p_10001 (Discord #feedback, Windows 11, magpie 0.1.2993): every China-site account call to agent.minimaxi.com (usage, check-in, account, membership) failed in magpie's plugin host with "unable to get issuer certificate" for ~16h, while chats on agent.minimax.cn worked. They checked that agent.minimax.cn serves the same account API with the same tokens and answers. accountCall now sends a call to site.agent once more to the site's agentFallback (China: https://agent.minimax.cn) only when the fetch got no HTTP answer: a TLS error, a refused/reset connection, a name that didn't resolve. A 401/403, any other status, a statusInfo/base_resp error, a redirect to another site (OtherSite) and a timeout or abort are the answer and are never sent twice. Both attempts share the one 15s deadline. When both hosts fail, the error names both hosts and why. The international site has no fallback. Tests (fallback.test.mjs): agent.minimaxi.com is played by a TLS server serving a leaf issued by an intermediate the client never saw (testdata/leaf.pem, generated for the test), so its fetch fails as the reporter's did; agent.minimax.cn by the fake. The usage card and the check-in claim go through the fallback; a 401, 404, 502, base_resp error and a 307 to another site are not sent to the fallback; both hosts failing names both; the global site doesn't fall back. Run: - mote (Bun 1.4.2): HOME=$(mktemp -d) bun test at the repo root: 5942 pass, 19 skip, 0 fail. bun scripts/check.mjs: registry.json and minimax ok. - xiaomi-gpu Windows 11 (win-run, Bun 1.4.2): fallback.test.mjs 9/9. - Broken by hand on mote: no fallback at all -> card, check-in and both-fail tests red; falling back on any non-ok status -> 401/404/502 red; falling back on OtherSite and on a body error -> redirect and business-error red. Not tried: no MiniMax China-site tokens here, so no real call to agent.minimax.cn's account API; that it answers the same is the reporter's check. The reporter's own Bun 1.4.4 was not run. |