Update pkg/providers/github_copilot_provider.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
e610e938e2
commit
919b2094f1
1 changed files with 4 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue