Do not return when not present (#294)

This commit is contained in:
quzard
2023-05-03 01:41:21 +08:00
committed by GitHub
parent af9ff51077
commit 1b8feae0b6

View File

@@ -7,7 +7,8 @@ import (
)
type ChatCompletionStreamChoiceDelta struct {
Content string `json:"content"`
Content string `json:"content,omitempty"`
Role string `json:"role,omitempty"`
}
type ChatCompletionStreamChoice struct {