fix(http): avoid err redeclare in /trigger handler

This commit is contained in:
Thomas Cravey 2025-09-05 07:20:41 -05:00
parent 8dc52976eb
commit 575edf2c73

View file

@ -157,7 +157,6 @@ func (s *Server) handleTrigger(w http.ResponseWriter, r *http.Request) {
ctxSum, cancel := context.WithTimeout(ctx, tout)
defer cancel()
var summary string
var err error
// If we will push, use a push-optimized prompt; otherwise allow full-length
if strings.EqualFold(r.URL.Query().Get("push"), "1") || strings.EqualFold(r.URL.Query().Get("push"), "true") {
summary, err = s.Summarizer.SummarizeForPush(ctxSum, channel, msgs, window)