fix(ai): diagnose summary provider failures (#37)

This commit is contained in:
2026-11-24 15:06:01 +01:00
parent a53aec7947
commit 6e7fbb129a
10 changed files with 458 additions and 19 deletions

View File

@ -60,7 +60,7 @@ func main() {
models.SourceCNBCBusiness: cnbcbusiness.New(),
}
app := server.New(repo, cfg, server.Dependencies{CompanyCatalog: catalog, LayaRanker: laya, Feeds: feeds, IndexSearcher: openfigi.New(openfigi.Config{APIKey: cfg.OpenFIGIAPIKey, Timeout: cfg.OpenFIGITimeout}, nil), EnableScheduler: true})
app := server.New(repo, cfg, server.Dependencies{SummaryDiagnostics: ai.LogSummaryDiagnostic, CompanyCatalog: catalog, LayaRanker: laya, Feeds: feeds, IndexSearcher: openfigi.New(openfigi.Config{APIKey: cfg.OpenFIGIAPIKey, Timeout: cfg.OpenFIGITimeout}, nil), EnableScheduler: true})
defer app.Close()
addr := fmt.Sprintf(":%s", cfg.Port)