Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

ctrl+c on empty line exits (#135)

Michael Yang55b5f5dc345d
diff --git a/cmd/cmd.go b/cmd/cmd.go
index d50608252..944c2aa8d 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -276,6 +276,10 @@ func generateInteractive(cmd *cobra.Command, model string) error {
case errors.Is(err, io.EOF):
return nil
case errors.Is(err, readline.ErrInterrupt):
+ if line == "" {
+ return nil
+ }
+
continue
case err != nil:
return err