We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5e0a66 commit ff698ddCopy full SHA for ff698dd
chat_stream.go
@@ -37,14 +37,18 @@ type ChatCompletionTokenLogprobTopLogprob struct {
37
Logprob float64 `json:"logprob"`
38
}
39
40
+type MessageData struct {
41
+ Role string `json:"role"`
42
+ Content string `json:"content"`
43
+}
44
type ChatCompletionStreamChoice struct {
45
Index int `json:"index"`
46
Delta ChatCompletionStreamChoiceDelta `json:"delta"`
47
Logprobs *ChatCompletionStreamChoiceLogprobs `json:"logprobs,omitempty"`
48
FinishReason FinishReason `json:"finish_reason"`
49
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
50
// sb sentence
- Message string `json:"message,omitempty"`
51
+ Message MessageData `json:"message,omitempty"`
52
53
54
type PromptFilterResult struct {
0 commit comments