mirror of
https://github.com/ollama/ollama.git
synced 2025-03-28 02:33:14 +01:00
Revert "stop running model on interactive exit"
This reverts commit fad00a85e503550bc35ab5d905b81bf5163c5ef6.
This commit is contained in:
parent
4c78f028f8
commit
658e60cf73
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user