Update pkg/providers/openai_compat/provider.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
14b7089e62
commit
f1cc9c4abd
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ func (p *Provider) Chat(
|
|||
|
||||
fallbackOut, fallbackErr := p.chatCompletions(ctx, messages, tools, normalizedModel, options)
|
||||
if fallbackErr != nil {
|
||||
return nil, fmt.Errorf("responses request failed: %w; fallback chat/completions failed: %v", err, fallbackErr)
|
||||
return nil, fmt.Errorf("responses request failed; fallback chat/completions failed: %w", errors.Join(err, fallbackErr))
|
||||
}
|
||||
return fallbackOut, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue