Skip to content

Commit ff19a8b

Browse files
committed
refactor: ChatCompletionStreamChoice.FinishReason from string to FinishReason
1 parent 43de771 commit ff19a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chat_stream.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type ChatCompletionStreamChoiceDelta struct {
1515
type ChatCompletionStreamChoice struct {
1616
Index int `json:"index"`
1717
Delta ChatCompletionStreamChoiceDelta `json:"delta"`
18-
FinishReason string `json:"finish_reason"`
18+
FinishReason FinishReason `json:"finish_reason"`
1919
}
2020

2121
type ChatCompletionStreamResponse struct {

0 commit comments

Comments
 (0)