diff --git a/tools/perplexity/perplexity.go b/tools/perplexity/perplexity.go index 4310a9260..2ae4a73db 100644 --- a/tools/perplexity/perplexity.go +++ b/tools/perplexity/perplexity.go @@ -58,7 +58,7 @@ func (p *Perplexity) Call(ctx context.Context, input string) (string, error) { var generatedText string _, err := p.llm.GenerateContent(ctx, content, - llms.WithStreamingFunc(func(ctx context.Context, chunk []byte) error { + llms.WithStreamingFunc(func(_ context.Context, chunk []byte) error { generatedText += string(chunk) return nil }))