Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
use stdout fd for terminal size (#1125)
Jeffrey Morgan4e612a2e92de
diff --git a/cmd/cmd.go b/cmd/cmd.goindex 5f2afb0db..9561b81cb 100644--- a/cmd/cmd.go+++ b/cmd/cmd.go@@ -398,7 +398,7 @@ func generate(cmd *cobra.Command, model, prompt string, wordWrap bool, format stgenerateContext = []int{}}- termWidth, _, err := term.GetSize(int(0))+ termWidth, _, err := term.GetSize(int(os.Stdout.Fd()))if err != nil {wordWrap = false}