Why: builtin providers (MiniMax / DeepSeek / Bailian / Ark) currently
fall through to the generic "Missing or unsupported provider" error in
/api/ai/validate. The post-generation loop catches that as a hard
provider error and logs "[error] Analysis skipped (timeout or provider
error)" — which reads like a config bug to the user even though the
real reason is "this provider's models are text-only, vision validation
isn't useful here even if we did proxy it".
What: branch on body.provider === 'builtin' before the generic error
and return { skipped: true, error: '<explanatory message>' }. The
client design-validation.ts already short-circuits on `data.skipped`
so the loop now logs the clearer message instead. No behavior change
for the four supported providers; no new wire fields.
|
||
|---|---|---|
| .. | ||
| agent.ts | ||
| chat.ts | ||
| connect-acp.ts | ||
| connect-agent.ts | ||
| generate.ts | ||
| icon.ts | ||
| image-generate.ts | ||
| image-proxy.ts | ||
| image-search.ts | ||
| image-service-test.ts | ||
| install-agent.ts | ||
| mcp-install.ts | ||
| models.ts | ||
| provider-models.ts | ||
| provider-url.ts | ||
| validate.ts | ||