Update pkg/providers/openai_compat/provider.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
f1cc9c4abd
commit
9fccd491a6
1 changed files with 0 additions and 2 deletions
|
|
@ -768,8 +768,6 @@ func parseResponsesResponse(body io.Reader) (*LLMResponse, error) {
|
|||
if apiResponse.IncompleteDetails != nil && apiResponse.IncompleteDetails.Reason != "" && apiResponse.IncompleteDetails.Reason != "max_output_tokens" {
|
||||
finishReason = apiResponse.IncompleteDetails.Reason
|
||||
}
|
||||
} else if apiResponse.Status == "failed" {
|
||||
finishReason = "error"
|
||||
}
|
||||
|
||||
var usage *UsageInfo
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue