Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Fix unicode output on windows with redirect to file (#7358)
Daniel Hiltgen35ec7f079ff3
diff --git a/cmd/cmd.go b/cmd/cmd.goindex a44ed5c6f..b8c9c6406 100644--- a/cmd/cmd.go+++ b/cmd/cmd.go@@ -1318,7 +1318,7 @@ func NewCLI() *cobra.Command {log.SetFlags(log.LstdFlags | log.Lshortfile)cobra.EnableCommandSorting = false- if runtime.GOOS == "windows" {+ if runtime.GOOS == "windows" && term.IsTerminal(int(os.Stdout.Fd())) {console.ConsoleFromFile(os.Stdin) //nolint:errcheck}