File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,18 @@ type ChatCompletionTokenLogprobTopLogprob struct {
37
37
Logprob float64 `json:"logprob"`
38
38
}
39
39
40
+ type MessageData struct {
41
+ Role string `json:"role"`
42
+ Content string `json:"content"`
43
+ }
40
44
type ChatCompletionStreamChoice struct {
41
45
Index int `json:"index"`
42
46
Delta ChatCompletionStreamChoiceDelta `json:"delta"`
43
47
Logprobs * ChatCompletionStreamChoiceLogprobs `json:"logprobs,omitempty"`
44
48
FinishReason FinishReason `json:"finish_reason"`
45
49
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
46
50
// sb sentence
47
- Message string `json:"message,omitempty"`
51
+ Message MessageData `json:"message,omitempty"`
48
52
}
49
53
50
54
type PromptFilterResult struct {
You can’t perform that action at this time.
0 commit comments