Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Zihang Xu 2026-02-22 14:59:50 +08:00 committed by GitHub
parent 48bcfce023
commit e610e938e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,10 +69,7 @@ func (p *GitHubCopilotProvider) Chat(
}) })
} }
fullcontent, err := json.Marshal(out) fullcontent, _ := json.Marshal(out)
if err != nil {
return nil, fmt.Errorf("failed to marshal messages: %w", err)
}
content, err := p.session.Send(ctx, copilot.MessageOptions{ content, err := p.session.Send(ctx, copilot.MessageOptions{
Prompt: string(fullcontent), Prompt: string(fullcontent),