Skip to content

Commit

Permalink
Add PromptFilterResult (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchaykow committed Apr 16, 2024
1 parent a42f519 commit c6a63ed
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions chat_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@ type ChatCompletionStreamChoice struct {
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
}

type PromptFilterResult struct {
Index int `json:"index"`
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
}

type ChatCompletionStreamResponse struct {
ID string `json:"id"`
Object string `json:"object"`
Created int64 `json:"created"`
Model string `json:"model"`
Choices []ChatCompletionStreamChoice `json:"choices"`
PromptAnnotations []PromptAnnotation `json:"prompt_annotations,omitempty"`
ID string `json:"id"`
Object string `json:"object"`
Created int64 `json:"created"`
Model string `json:"model"`
Choices []ChatCompletionStreamChoice `json:"choices"`
PromptAnnotations []PromptAnnotation `json:"prompt_annotations,omitempty"`
PromptFilterResults []PromptFilterResult `json:"prompt_filter_results,omitempty"`
}

// ChatCompletionStream
Expand Down

0 comments on commit c6a63ed

Please sign in to comment.