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