AI: Update log messages and tests in internal/ai/classify #127 #5011

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-08-04 10:31:39 +02:00
parent 523605f7d7
commit 3177a61f75
3 changed files with 38 additions and 37 deletions

View File

@@ -129,15 +129,15 @@ func TestExternalModel_AllModels(t *testing.T) {
for k, v := range modelsInfo {
t.Run(k, func(*testing.T) {
log.Infof("Testing model %s", k)
log.Infof("vision: testing model %s", k)
downloadedModel := downloadRemoteModel(t, fmt.Sprintf("%s/%s", baseUrl, k), tmpPath)
log.Infof("Model downloaded to %s", downloadedModel)
log.Infof("vision: model downloaded to %s", downloadedModel)
if v.Labels != "" {
modelPath := filepath.Join(tmpPath, downloadedModel)
t.Logf("Model path: %s", modelPath)
t.Logf("vision: model path is %s", modelPath)
downloadLabels(t, fmt.Sprintf("%s/%s", baseUrl, v.Labels), modelPath)
}