mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user