AI: Generate Labels using the Ollama API #5232

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-09-28 13:29:49 +02:00
parent cf06f52025
commit 8a7c61f467
6 changed files with 288 additions and 9 deletions

View File

@@ -21,6 +21,10 @@ import (
type Files = []string
const (
FormatJSON = "json"
)
// ApiRequestOptions represents additional model parameters listed in the documentation.
type ApiRequestOptions struct {
NumKeep int `yaml:"NumKeep,omitempty" json:"num_keep,omitempty"`