Skip to content

Commit

Permalink
refactor: ChatCompletionStreamChoice.FinishReason from string to Fini…
Browse files Browse the repository at this point in the history
…shReason (sashabaranov#372)
  • Loading branch information
liushuangls authored Jun 15, 2023
1 parent 43de771 commit 0bd14f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type ChatCompletionStreamChoiceDelta struct {
type ChatCompletionStreamChoice struct {
Index int `json:"index"`
Delta ChatCompletionStreamChoiceDelta `json:"delta"`
FinishReason string `json:"finish_reason"`
FinishReason FinishReason `json:"finish_reason"`
}

type ChatCompletionStreamResponse struct {
Expand Down

0 comments on commit 0bd14f9

Please sign in to comment.