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 @@ -324,6 +324,11 @@ type ChatCompletionRequest struct {
324
324
// Lowering the number of tokens reduces overall latency.
325
325
// It can be set to "low", "medium", or "high".
326
326
Verbosity string `json:"verbosity,omitempty"`
327
+ // A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.
328
+ // The IDs should be a string that uniquely identifies each user.
329
+ // We recommend hashing their username or email address, in order to avoid sending us any identifying information.
330
+ // https://platform.openai.com/docs/api-reference/chat/create#chat_create-safety_identifier
331
+ SafetyIdentifier string `json:"safety_identifier,omitempty"`
327
332
// Embedded struct for non-OpenAI extensions
328
333
ChatCompletionRequestExtensions
329
334
}
You can’t perform that action at this time.
0 commit comments