File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,19 @@ type ChatCompletionStreamChoice struct {
19
19
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
20
20
}
21
21
22
+ type PromptFilterResult struct {
23
+ Index int `json:"index"`
24
+ ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
25
+ }
26
+
22
27
type ChatCompletionStreamResponse struct {
23
- ID string `json:"id"`
24
- Object string `json:"object"`
25
- Created int64 `json:"created"`
26
- Model string `json:"model"`
27
- Choices []ChatCompletionStreamChoice `json:"choices"`
28
- PromptAnnotations []PromptAnnotation `json:"prompt_annotations,omitempty"`
28
+ ID string `json:"id"`
29
+ Object string `json:"object"`
30
+ Created int64 `json:"created"`
31
+ Model string `json:"model"`
32
+ Choices []ChatCompletionStreamChoice `json:"choices"`
33
+ PromptAnnotations []PromptAnnotation `json:"prompt_annotations,omitempty"`
34
+ PromptFilterResults []PromptFilterResult `json:"prompt_filter_results,omitempty"`
29
35
}
30
36
31
37
// ChatCompletionStream
You can’t perform that action at this time.
0 commit comments