diff --git a/pkg/providers/github_copilot_provider.go b/pkg/providers/github_copilot_provider.go index b2442b6d5..fa67363f6 100644 --- a/pkg/providers/github_copilot_provider.go +++ b/pkg/providers/github_copilot_provider.go @@ -69,7 +69,10 @@ func (p *GitHubCopilotProvider) Chat( }) } - fullcontent, _ := json.Marshal(out) + fullcontent, err := json.Marshal(out) + if err != nil { + return nil, fmt.Errorf("failed to marshal messages: %w", err) + } content, err := p.session.Send(ctx, copilot.MessageOptions{ Prompt: string(fullcontent),