Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

cli: don't exit for invalid model during /load. (#9576)

frobb3af953a55f0
diff --git a/cmd/interactive.go b/cmd/interactive.go
index af58f4fc4..7c11ab83e 100644
--- a/cmd/interactive.go
+++ b/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