fix(http): avoid err redeclare in /trigger handler
This commit is contained in:
parent
8dc52976eb
commit
575edf2c73
1 changed files with 0 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue