feat(sources): retire Yahoo and CNBC feeds (#42)
This commit is contained in:
@ -62,7 +62,7 @@ func TestTicket28GenerationAggregatesAllAssetsBeforeSelectionAndFailsClosed(t *t
|
||||
}))
|
||||
defer srv.Close()
|
||||
ranker, _ := ai.NewLayaHTTPRanker(ai.LayaHTTPConfig{BaseURL: srv.URL, BatchSize: 2})
|
||||
model, key := "model", models.SourceYahooFinance
|
||||
model, key := "model", models.SourceBloomberg
|
||||
feed := &ticket17HTTPScraper{articles: []scraper.Article{{Title: "first", URL: "https://fixture.invalid/first", ContentState: scraper.ContentComplete, Content: content}, {Title: "second", URL: "https://fixture.invalid/second", ContentState: scraper.ContentComplete, Content: content}}}
|
||||
summary := &ticket17HTTPSummary{}
|
||||
repo := &ticket17HTTPRepo{input: generation.UserInput{SummaryModelID: &model, Language: "fr", RankingMode: "title_content", GlobalLimit: 1, Assets: []models.UserAsset{{Name: strings.Repeat("A", 400), Symbol: "A"}, {Name: strings.Repeat("B", 400), Symbol: "B"}}, Sources: []models.Source{{ID: "source", SourceKey: &key, Enabled: true, ArticleLimit: 2}}}}
|
||||
|
||||
Reference in New Issue
Block a user