Add PromptFilterResult (#702)
This commit is contained in:
@@ -19,6 +19,11 @@ type ChatCompletionStreamChoice struct {
|
|||||||
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
|
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PromptFilterResult struct {
|
||||||
|
Index int `json:"index"`
|
||||||
|
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
type ChatCompletionStreamResponse struct {
|
type ChatCompletionStreamResponse struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Object string `json:"object"`
|
Object string `json:"object"`
|
||||||
@@ -26,6 +31,7 @@ type ChatCompletionStreamResponse struct {
|
|||||||
Model string `json:"model"`
|
Model string `json:"model"`
|
||||||
Choices []ChatCompletionStreamChoice `json:"choices"`
|
Choices []ChatCompletionStreamChoice `json:"choices"`
|
||||||
PromptAnnotations []PromptAnnotation `json:"prompt_annotations,omitempty"`
|
PromptAnnotations []PromptAnnotation `json:"prompt_annotations,omitempty"`
|
||||||
|
PromptFilterResults []PromptFilterResult `json:"prompt_filter_results,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ChatCompletionStream
|
// ChatCompletionStream
|
||||||
|
|||||||
Reference in New Issue
Block a user