feat(generation): select articles in three passes
This commit is contained in:
14
backend/internal/api/mention_fakes_test.go
Normal file
14
backend/internal/api/mention_fakes_test.go
Normal file
@ -0,0 +1,14 @@
|
||||
package api_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/tradarr/backend/internal/generation"
|
||||
"github.com/tradarr/backend/internal/models"
|
||||
)
|
||||
|
||||
func (r *selectionLaya) DecideMentions(c context.Context, m, p string, a []models.UserAsset, v []generation.Candidate) ([]generation.Candidate, error) {
|
||||
return r.Rank(c, m, a, v)
|
||||
}
|
||||
func (r passRanker) DecideMentions(c context.Context, m, p string, a []models.UserAsset, v []generation.Candidate) ([]generation.Candidate, error) {
|
||||
return r.Rank(c, m, a, v)
|
||||
}
|
||||
Reference in New Issue
Block a user