refactor: ChatCompletionStreamChoice.FinishReason from string to FinishReason (#372)
This commit is contained in:
1 parent
43de77162f
commit
0bd14f9584
1 file changed
+1
-1
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user