mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
Add multimodel support to ollama run
in noninteractive mopde (#2317)
This commit is contained in:
parent
38296ab352
commit
e135167484
2 changed files with 56 additions and 49 deletions
|
@ -601,10 +601,10 @@ func extractFileData(input string) (string, []api.ImageData, error) {
|
|||
if os.IsNotExist(err) {
|
||||
continue
|
||||
}
|
||||
fmt.Printf("Couldn't process image: %q\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Couldn't process image: %q\n", err)
|
||||
return "", imgs, err
|
||||
}
|
||||
fmt.Printf("Added image '%s'\n", nfp)
|
||||
fmt.Fprintf(os.Stderr, "Added image '%s'\n", nfp)
|
||||
input = strings.ReplaceAll(input, fp, "")
|
||||
imgs = append(imgs, data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue