File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,11 @@ type ChatCompletionRequest struct {
351
351
ChatTemplateKwargs map [string ]any `json:"chat_template_kwargs,omitempty"`
352
352
// Specifies the latency tier to use for processing the request.
353
353
ServiceTier ServiceTier `json:"service_tier,omitempty"`
354
+ // A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.
355
+ // The IDs should be a string that uniquely identifies each user.
356
+ // We recommend hashing their username or email address, in order to avoid sending us any identifying information.
357
+ // https://platform.openai.com/docs/api-reference/chat/create#chat_create-safety_identifier
358
+ SafetyIdentifier string `json:"safety_identifier,omitempty"`
354
359
// Embedded struct for non-OpenAI extensions
355
360
ChatCompletionRequestExtensions
356
361
}
You can’t perform that action at this time.
0 commit comments