Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
38296ab3
Unverified
Commit
38296ab3
authored
Feb 01, 2024
by
Jeffrey Morgan
Committed by
GitHub
Feb 01, 2024
Browse files
clear previous images when submitting an image to `ollama run` (#2316)
parent
f43dea68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
cmd/interactive.go
cmd/interactive.go
+8
-0
No files found.
cmd/interactive.go
View file @
38296ab3
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment