feat(ai): test saved summary model generation (#43)
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user