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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user