feat(ai): test saved summary model generation (#43)

This commit is contained in:
2026-11-25 09:32:05 +01:00
parent 33dcc11aa5
commit a3738de516
27 changed files with 1595 additions and 43 deletions

View File

@ -3,6 +3,7 @@
package server
import (
"context"
"github.com/gin-gonic/gin"
"github.com/tradarr/backend/internal/ai"
"github.com/tradarr/backend/internal/api"
@ -19,6 +20,9 @@ import (
)
type Dependencies struct {
ModelTester interface {
Test(context.Context, string) error
}
SummaryDiagnostics ai.SummaryDiagnosticCollector
CompanyCatalog companycatalog.CompanyCatalog
LayaRanker generation.LayaRanker
@ -52,6 +56,9 @@ func New(repo *models.Repository, cfg *config.Config, deps Dependencies) *App {
}
}
h := handlers.New(repo, cfg, enc, registry, pipeline, sched)
if deps.ModelTester != nil {
h.SetModelTester(deps.ModelTester)
}
h.SetGenerationUseCase(uc)
h.SetIndexSearcher(deps.IndexSearcher)
if deps.CompanyCatalog != nil {