Skip to content

Commit 0bd14f9

Browse files
authored
refactor: ChatCompletionStreamChoice.FinishReason from string to FinishReason (#372)
1 parent 43de771 commit 0bd14f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chat_stream.go

Lines changed: 1 addition & 1 deletion
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)