mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 16:26:59 +00: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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
var format string
|
format, err := cmd.Flags().GetString("format")
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
var wordWrap bool
|
var wordWrap bool
|
||||||
termType := os.Getenv("TERM")
|
termType := os.Getenv("TERM")
|
||||||
if termType == "xterm-256color" {
|
if termType == "xterm-256color" {
|
||||||
|
|||||||
Reference in New Issue
Block a user