docs(ai-chat): image models aren't chat models - #832
Merged
Conversation
The model table sits under a heading that covers both /aichat2/conversations and /openai/chat/completions, with no per-endpoint attribution — so listing `gemini-3.1-flash-image-preview` among the text models reads as "usable on either". It isn't usable on either. Verified against production: with an identical payload, `gemini-3.1-pro` returns 200 on /aichat2/conversations while `gemini-3.1-flash-image-preview` returns 400. `gpt-4o-image` (500) and `gpt-image-1` (400) fail there too. Drop it from the table and add a note covering the whole `-image` class, pointing at the endpoints that do serve them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
skills/ai-chat/SKILL.md的模型表挂在一个同时声明了四个端点的标题下:表名是通用的 "Currently Documented Model Families",没有任何 per-endpoint 归属标注。所以 Gemini 那行里的
gemini-3.1-flash-image-preview读起来像是"上面任一端点都能用"。实际上哪个都不能用。 这是个给 LLM agent 读的 skill,含糊会直接变成错误调用。
实测证据
同一个 payload 形状打
/aichat2/conversations:gemini-3.1-pro(对照组){"answer":"OK"}gemini-3.1-flash-image-previewgpt-4o-imagegpt-image-1对照组排除了"payload 格式不对"这个解释——文本模型用同样的结构就是 200。
图像模型在账号池里只有 native 通道,chat 类端点一律打不通。
改动
gemini-3.1-flash-image-preview-image类的说明,指向真正能用的端点写成类别规则而非逐个点名,这样将来新增
-image模型不必再改这里。.agents/和.github/下无该模型名的副本(grep 零命中),无需同步。关联
顺带发现(本 PR 不处理)
/aichat2/conversations的 OpenAPI enum 里还留着这三个图像模型(gpt-4o-image、gpt-image-1、gemini-3.1-flash-image-preview),实测全部失败。那是独立议题——涉及 OpenAI 系上游、根因不同,需要单独调查,不宜塞进这次 gemini 收尾。🤖 Generated with Claude Code