From df73f84452bb4393d980f7b93fc89e437fe18395 Mon Sep 17 00:00:00 2001 From: ray <19812545+rayspock@users.noreply.github.com> Date: Thu, 11 Jan 2024 14:35:15 +0000 Subject: [PATCH] Fix the type error (#28) --- provider/chatgpt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/chatgpt.go b/provider/chatgpt.go index 7f6934d..36374a2 100644 --- a/provider/chatgpt.go +++ b/provider/chatgpt.go @@ -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 {