Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

`--format json` should work in interactive mode

Jeffrey Morgan6e0f686afa90
diff --git a/cmd/cmd.go b/cmd/cmd.go
index bc70095c5..5f2afb0db 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -542,7 +542,11 @@ func generateInteractive(cmd *cobra.Command, model string) error {
return err
}
- var format string
+ format, err := cmd.Flags().GetString("format")
+ if err != nil {
+ return err
+ }
+
var wordWrap bool
termType := os.Getenv("TERM")
if termType == "xterm-256color" {