Add PromptFilterResult (#702)
This commit is contained in:
@@ -19,13 +19,19 @@ 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"`
|
||||||
Created int64 `json:"created"`
|
Created int64 `json:"created"`
|
||||||
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