feat(generation): score articles with selected relevance model (#48)
This commit is contained in:
@ -241,5 +241,9 @@ func seed(db *sql.DB, fakeURL string) error {
|
||||
if _, err = tx.Exec(`INSERT INTO ai_provider_models(id,provider_id,model,enabled) VALUES('00000000-0000-0000-0000-000000001203','00000000-0000-0000-0000-000000001202','fake-summary',true)`); err != nil {
|
||||
return err
|
||||
}
|
||||
fixture := e2estack.DefaultFixtures()
|
||||
if _, err = tx.Exec(`INSERT INTO ai_provider_models(id,provider_id,model,enabled) VALUES($1,'00000000-0000-0000-0000-000000001202',$2,true)`, fixture.RankingModelID, fixture.RankingModelName); err != nil {
|
||||
return err
|
||||
}
|
||||
return tx.Commit()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user