makecindy / makecindy/cindy

AI 绘画出图全部失败:默认图像供应商的模型名与后端不一致

Open
#2,826 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
2.7k
Forks
401
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**提交人**: 匿名
**客户端版本**: 0.1.50

---

## 现象
使用 Art 插件(cindy-art)文生图,无论是否显式指定模型,出图均失败。

## 复现步骤
1. 在对话中让 Cindy 生成一张图(Art 插件 gen_image,竖图 2:3);
2. 分别尝试:不传 model(走默认图像供应商),以及显式传入全部 4 个白名单图像模型。

## 期望行为
能正常生成图片。

## 实际行为
- 不传 model(默认走 XD Gateway 供应商):报 `Invalid model name passed in model=gpt-image-2. Call /v1/models to view available models for your key.`(HTTP 400)
- 显式 `gpt-image-2` / `gemini-3-pro-image` / `gemini-3.1-flash-image`(均走 XD Gateway):同样报「模型名无效 / Invalid model name」。
- 显式 `openai/gpt-image-2`(OpenAI 直连):报 HTTP 429「The usage limit has been reached」。

## 复现频率
100%(4 个白名单模型 + 默认路由全部失败,每次都稳定复现)。

## 已尝试
- 按插件规范不传 model 走默认路由 → 失败;
- 逐个显式指定白名单内全部 4 个模型 → 失败;
- 检查本机配置:默认图像供应商(XD Gateway)的端点由服务端下发(source: server),本地无可编辑字段,无法自行纠正模型名。

## 疑似根因
主机锁定的图像模型名(gpt-image-2 / gemini-3-pro-image / gemini-3.1-flash-image)与默认图像供应商后端实际支持的模型清单不一致,导致除 OpenAI 直连外的所有图像请求都因「模型名无效」被拒;而 OpenAI 直连又受图像额度限制。疑似服务端模型目录未与供应商同步。
---
**OS**: darwin arm64 (25.5.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by tracing the Art plugin's gen_image entry point through default-provider routing and the server-delivered image-model catalog. Compare the configured names with the provider's supported models, then verify that the default route and each supported model no longer fail with an invalid-model error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, backend-api-design
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.