diff --git a/cmd/interactive.go b/cmd/interactive.go index 94cc8b70..690cd107 100644 --- a/cmd/interactive.go +++ b/cmd/interactive.go @@ -496,6 +496,14 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error { if err != nil { return err } + + // clear all previous images for better responses + if len(images) > 0 { + for i := range opts.Messages { + opts.Messages[i].Images = nil + } + } + newMessage.Content = msg newMessage.Images = images }