Skip to content

Commit

Permalink
Fix the type error (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayspock authored Jan 11, 2024
1 parent 38d2b68 commit df73f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/chatgpt.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (s *chatGPTServiceImpl) CreateChatCompletionStream(ctx context.Context,
Delta: ChatCompletionStreamChoiceDelta{
Content: choice.Delta.Content,
},
FinishReason: choice.FinishReason,
FinishReason: string(choice.FinishReason),
})
}
if len(choices) > 0 {
Expand Down

0 comments on commit df73f84

Please sign in to comment.