Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
48bcfce023
commit
e610e938e2
1 changed files with 1 additions and 4 deletions
|
|
@ -69,10 +69,7 @@ func (p *GitHubCopilotProvider) Chat(
|
|||
})
|
||||
}
|
||||
|
||||
fullcontent, err := json.Marshal(out)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to marshal messages: %w", err)
|
||||
}
|
||||
fullcontent, _ := json.Marshal(out)
|
||||
|
||||
content, err := p.session.Send(ctx, copilot.MessageOptions{
|
||||
Prompt: string(fullcontent),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue