mirror of
https://github.com/ollama/ollama.git
synced 2025-05-10 18:06:33 +02:00
cli: don't exit for invalid model during /load. (#9576)
Co-authored-by: Richard Lyons <frob@cloudstaff.com>
This commit is contained in:
parent
ad4e0bf3be
commit
b3af953a55
1 changed files with 4 additions and 0 deletions
|
@ -195,6 +195,10 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error {
|
|||
opts.Messages = []api.Message{}
|
||||
fmt.Printf("Loading model '%s'\n", opts.Model)
|
||||
if err := loadOrUnloadModel(cmd, &opts); err != nil {
|
||||
if strings.Contains(err.Error(), "not found") {
|
||||
fmt.Printf("error: %v\n", err)
|
||||
continue
|
||||
}
|
||||
return err
|
||||
}
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue