docs: expand .env example to show max/large values; add SUMM_TIMEOUT and summarizer tunables\n\nfeat: summarizer improvements\n- readability extraction for articles\n- image links passed to model as vision inputs\n- configurable max groups/links/bytes and timeout\n- higher default ceilings; resilient fallback summary
This commit is contained in:
parent
2954e85e7a
commit
9ecf4f4f4c
7 changed files with 296 additions and 53 deletions
|
|
@ -108,16 +108,15 @@ func main() {
|
|||
|
||||
// HTTP API
|
||||
api := httpapi.Server{
|
||||
ListenAddr: cfg.HTTPListen,
|
||||
AuthToken: cfg.HTTPToken,
|
||||
Store: st,
|
||||
Summarizer: sum,
|
||||
Notifier: nt,
|
||||
Logger: slog.New(slog.NewJSONHandler(os.Stdout, nil)), // legacy interface still expects *log.Logger; keep minimal text via adapter if needed
|
||||
Metrics: metrics,
|
||||
Ready: func() bool {
|
||||
return atomic.LoadInt64(&metrics.ConnectedGauge) == 1
|
||||
},
|
||||
ListenAddr: cfg.HTTPListen,
|
||||
AuthToken: cfg.HTTPToken,
|
||||
Store: st,
|
||||
Summarizer: sum,
|
||||
Notifier: nt,
|
||||
Logger: slog.New(slog.NewJSONHandler(os.Stdout, nil)),
|
||||
Metrics: metrics,
|
||||
Ready: func() bool { return atomic.LoadInt64(&metrics.ConnectedGauge) == 1 },
|
||||
SummarizerTimeout: cfg.SummarizerTimeout,
|
||||
}
|
||||
go func() {
|
||||
if err := api.Start(ctx); err != nil && err != http.ErrServerClosed {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue