Skip to content

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

[fix] /bye and /exit are now treated as prefixes (#2381)

lulzce0c95d09724
diff --git a/cmd/interactive.go b/cmd/interactive.go
index a421a5136..82e3642a3 100644
--- a/cmd/interactive.go
+++ b/cmd/interactive.go
@@ -470,7 +470,7 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error {
} else {
usage()
}
- case line == "/exit", line == "/bye":
+ case strings.HasPrefix(line, "/exit"), strings.HasPrefix(line, "/bye"):
return nil
case strings.HasPrefix(line, "/"):
args := strings.Fields(line)