Skip to content

Commit 902694f

Browse files
authored
Merge branch 'master' into master
2 parents 8d7ea9b + f71d1a6 commit 902694f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

chat.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,11 @@ type ChatCompletionRequest struct {
324324
// Lowering the number of tokens reduces overall latency.
325325
// It can be set to "low", "medium", or "high".
326326
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"`
327332
// Embedded struct for non-OpenAI extensions
328333
ChatCompletionRequestExtensions
329334
}

0 commit comments

Comments
 (0)