diff --git a/pkg/notify/route/route.go b/pkg/notify/route/route.go index b287f77..988d4ad 100644 --- a/pkg/notify/route/route.go +++ b/pkg/notify/route/route.go @@ -275,7 +275,12 @@ func (r *router) Route(ctx context.Context, result *rule.Result) (groups []*Grou return groups, nil } -func (r *router) generateSummary(ctx context.Context, prompt string, feeds []*Feed, sourceLabel string) (string, error) { +func (r *router) generateSummary( + ctx context.Context, + prompt string, + feeds []*Feed, + sourceLabel string, +) (string, error) { content := r.parseContentToSummary(feeds, sourceLabel) if content == "" { return "", nil @@ -296,6 +301,7 @@ func (r *router) generateSummary(ctx context.Context, prompt string, feeds []*Fe func (r *router) parseContentToSummary(feeds []*Feed, sourceLabel string) string { if sourceLabel == "" { b := runtimeutil.Must1(json.Marshal(feeds)) + return string(b) }