From 658e60cf7331dfd12672de1195a8c10ca1d82f08 Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Mon, 22 Apr 2024 17:23:11 -0700 Subject: [PATCH] Revert "stop running model on interactive exit" This reverts commit fad00a85e503550bc35ab5d905b81bf5163c5ef6. --- cmd/interactive.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmd/interactive.go b/cmd/interactive.go index 4eb2c2b8..12c31052 100644 --- a/cmd/interactive.go +++ b/cmd/interactive.go @@ -475,14 +475,6 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error { usage() } case strings.HasPrefix(line, "/exit"), strings.HasPrefix(line, "/bye"): - // stop the running model - client, err := api.ClientFromEnvironment() - if err != nil { - return err - } - client.Chat(cmd.Context(), &api.ChatRequest{Model: opts.Model, KeepAlive: &api.Duration{}}, func(resp api.ChatResponse) error { - return nil - }) return nil case strings.HasPrefix(line, "/"): args := strings.Fields(line)