Browse Source
cli: don't exit for invalid model during /load. (#9576)
Co-authored-by: Richard Lyons <frob@cloudstaff.com>
parth/sample-correctness-fix
frob
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
cmd/interactive.go
|
|
|
@ -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 |
|
|
|
|