Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
x/imagegen/cli: skip local model check (#13699)
Jeffrey Morgand70942f47b96
diff --git a/x/imagegen/cli.go b/x/imagegen/cli.goindex f287fa3fb..23a4d3fc2 100644--- a/x/imagegen/cli.go+++ b/x/imagegen/cli.go@@ -123,11 +123,6 @@ func RegisterFlags(cmd *cobra.Command) {// Returns true if it handled the request, false if the caller should continue with normal flow.// Supports flags: --width, --height, --steps, --seed, --negativefunc RunCLI(cmd *cobra.Command, name string, prompt string, interactive bool, keepAlive *api.Duration) error {- // Verify it's a valid image gen model- if ResolveModelName(name) == "" {- return fmt.Errorf("unknown image generation model: %s", name)- }-// Get options from flags (with env var defaults)opts := DefaultOptions()if cmd != nil && cmd.Flags() != nil {@@ -511,10 +506,7 @@ func displayImageInTerminal(imagePath string) bool {// Send in chunks for large imagesconst chunkSize = 4096for i := 0; i < len(encoded); i += chunkSize {- end := i + chunkSize- if end > len(encoded) {- end = len(encoded)- }+ end := min(i+chunkSize, len(encoded))chunk := encoded[i:end]if i == 0 {