settings: the image model error's example is gpt-image-2, not the shut-down gpt-image-1

OpenAI shut gpt-image-1 down on 2026-10-23. Run: go test ./internal/settings on mote: ok.
This commit is contained in:
yetone
2026-11-05 19:57:29 +08:00
parent 2d6939ec64
commit d00e41604c
+1 -1
View File
@@ -2214,7 +2214,7 @@ func saveOwn(s Settings, recording, reads bool) error {
}
s.ImageGen = strings.TrimSpace(s.ImageGen)
if s.ImageGen != "" && s.ImageGen != "off" && !strings.Contains(s.ImageGen, "/") {
return fmt.Errorf("the image generation model must be a model's id such as openai/gpt-image-1, or off, not %q", s.ImageGen)
return fmt.Errorf("the image generation model must be a model's id such as openai/gpt-image-2, or off, not %q", s.ImageGen)
}
rules, err := redact.CheckRules(s.RedactRules)
if err != nil {