codearts 0.2.4: every model is text only, and an image it refuses is a 400
star21321321124 (Discord, magpie 0.1.1818, codearts 0.2.3): DeepSeek V4.1
Flash through a Codex-like agent failed often with "CodeArts: The request
model is not multimodal (InferHub.001001020.406) (502: you can retry your
request)", while CodeArts' own client served it.
Cause: the plugin listed its models with capabilities.input { text: true }
and no image key, and the config hook gave no modalities. magpie's host
reads image as said only when it is a boolean (imageSaid), so every
CodeArts model was "unknown" to magpie: an agent's screenshot or a tool
result's image went upstream as sent, instead of being described by the
Vision model or left out (textOnlyBody). CodeArts then answered
InferHub.001001020.406 inside a 200, which embeddedErrorStatus counted 502,
and magpie told the agent to retry, so it asked again with the same image.
- The config hook declares attachment false and modalities text in, text
out; provider.models says input.image false (and audio, video, pdf) for
every listed model. A kind the user's own config says stands. The -vl
models were already left out of the list.
- InferHub.001001020.406 / "not multimodal" is a 400: inside a 200 (stream
and folded JSON), and with any HTTP status. foldAnswer's own error now
goes through embeddedErrorStatus too, instead of a flat 502.
Run (on mote): packages/codearts HOME=$(mktemp -d) bun test, 117 pass;
the whole repo's bun test, 2985 tests 0 fail; bun scripts/check.mjs ok.
Broken by hand: the new tests against origin/main's index.mjs go red, 3
of 3 (the 400 on every path, the text-only declaration, the status map).
Not tried: a real CodeArts account with an image (none here); the exact
body CodeArts sends is taken from the reporter's message (error_code /
error_msg shape as its other embedded errors).
This commit is contained in:
@@ -73,6 +73,10 @@ signing in, a short built-in catalog stands in.
|
||||
`mcp__plugin_android-emulator_android-emulator__android_discover_project`) goes as its first
|
||||
55 characters, `_` and 8 hex of its SHA-256, and the tool calls in the answer, streamed or
|
||||
not, carry the agent's own name again.
|
||||
- Every model is listed as text only (`modalities.input: ["text"]`, `image: false`): CodeArts
|
||||
answers an image with `InferHub.001001020.406` "The request model is not multimodal". Since
|
||||
0.2.4 magpie is told so, and describes an image for the model or leaves it out. That refusal,
|
||||
inside a `200` or with any status, comes back as a `400`, not a `502` an agent would ask again.
|
||||
|
||||
## Usage and check-in
|
||||
|
||||
@@ -130,6 +134,8 @@ magpie 里使用其 GLM、DeepSeek、openPangu 等模型。provider id:`codear
|
||||
只对流式回答计量积分),调用方要非流式时折叠回 JSON;默认注入 `thinking: { type: "enabled" }`,思考与
|
||||
正文分开;200 里内嵌的错误换算为 `429` / `400` / `502` 并带厂商原话;码道只接受不超过 64 个字符的工具名,
|
||||
更长的(如 MCP 工具名)发出时缩为前 55 个字符 + `_` + 8 位 SHA-256,回答(流式与非流式)里的工具调用再换回原名。
|
||||
0.2.4 起所有模型都声明为只收文本(码道对图片回 `InferHub.001001020.406`「The request model is not multimodal」),
|
||||
magpie 会替模型描述图片或把图片略去;这个拒绝不论放在 200 里还是带别的状态码,都换算为 `400`,而不是让智能体反复重试的 `502`。
|
||||
- **用量与签到**:总积分决定账号是否可用,其余积分桶只做明细;另有每日免费额度窗口。各批积分的到期
|
||||
时间读自码道控制台同一批接口,读不到时退回插件的签到账本 `~/.config/magpie/codearts-checkins.json`
|
||||
(这部分仍在用更多账号验证,请以控制台为准)。`auth.checkin` 与客户端「限时福利 → 每日领取」一致
|
||||
|
||||
Reference in New Issue
Block a user