mirror of
https://github.com/ollama/ollama.git
synced 2026-04-30 07:57:51 -05:00
--format json should work in interactive mode
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user