makecindy / makecindy/cindy

图像生成失败:网关持续报 "Invalid model name",配置的图像模型名与网关白名单不一致

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

Description

**提交人**: Charles Han
**客户端版本**: 0.1.50

---

## 现象
通过 Art 插件调用 `gen_image` 生成图片时,所有可选图像模型都失败,无法出图。

## 复现步骤
1. 使用 Art 插件的 `gen_image`,prompt 任意(如「北京」)
2. 分别尝试默认模型及全部白名单模型

## 实际行为
- `gpt-image-2`(默认)→ HTTP 400: `/image/generations: Invalid model name passed in model=gpt-image-2. Call /v1/models to view available models for your key.`
- `gemini-3-pro-image` → HTTP 400: `Invalid model name passed in model=gemini-3-pro-image.`
- `gemini-3.1-flash-image` → HTTP 400: `Invalid model name passed in model=gemini-3.1-flash-image.`
- `openai/gpt-image-2` → 一次报 HTTP 429「usage limit has been reached」,另一次报「不支持的模型(不在主机白名单内)」

注:不同时间点主机返回的白名单还会变化(例如 `openai/gpt-image-2` 时而在册、时而被判定不在白名单)。

## 期望行为
主机暴露给插件的图像模型白名单,应与后端网关 `/v1/models` 实际可用的模型保持一致,能够正常出图。

## 复现频率
稳定复现,多次、跨时间重试均失败。

## 已尝试的解决办法
- 逐一切换全部白名单模型
- 间隔一段时间多次重试
均无效。

## 疑似原因
主机端图像模型白名单与后端网关注册的实际模型名不同步。
---
**OS**: darwin arm64 (25.5.0)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start at the Art plugin's gen_image entry point and trace how its image-model whitelist is assembled and sent to the gateway. Compare those names with the gateway's /v1/models response; done means every advertised model matches an available model and image generation succeeds instead of returning Invalid model name.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.