From d00e41604cb6335bc8f492a46cf54b47bc47df70 Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 5 Nov 2026 19:57:29 +0800 Subject: [PATCH] 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. --- internal/settings/settings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/settings/settings.go b/internal/settings/settings.go index 1d0e05db2..8c7ecd8ba 100644 --- a/internal/settings/settings.go +++ b/internal/settings/settings.go @@ -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 {