Commit 658e60cf authored by Bruce MacDonald's avatar Bruce MacDonald
Browse files

Revert "stop running model on interactive exit"

This reverts commit fad00a85.
parent 4c78f028
...@@ -475,14 +475,6 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error { ...@@ -475,14 +475,6 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error {
usage() usage()
} }
case strings.HasPrefix(line, "/exit"), strings.HasPrefix(line, "/bye"): 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 return nil
case strings.HasPrefix(line, "/"): case strings.HasPrefix(line, "/"):
args := strings.Fields(line) args := strings.Fields(line)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment