Add multimodel support to ollama run in noninteractive mopde (#2317)

This commit is contained in:
Jeffrey Morgan 2024-02-01 21:33:06 -08:00 committed by GitHub
parent 38296ab352
commit e135167484
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 56 additions and 49 deletions

View file

@ -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)
}