mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-22 06:43:57 +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