AI: Include NSFW flag & score when generating labels with Ollama #5232

Related issues: #5233 (reset command), #5234 (schedule for models)

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-10-05 04:23:36 +02:00
parent 79654170eb
commit e5dc335bcf
70 changed files with 2138 additions and 1082 deletions

View File

@@ -53,7 +53,7 @@ func PostVisionCaption(router *gin.RouterGroup) {
}
// Run inference to generate a caption.
result, model, err := vision.Caption(request.Images, media.SrcRemote)
result, model, err := vision.GenerateCaption(request.Images, media.SrcRemote)
if err != nil {
log.Errorf("vision: %s (caption)", err)