Merge 552a81c003f374046acf4977d8bb6c6b2ef705e0 into f6a34593aa12eb8e6… · openai/openai-python@de4737d · GitHub
Skip to content

Commit de4737d

Browse files
Merge 552a81c into f6a3459
2 parents f6a3459 + 552a81c commit de4737d

14 files changed

Lines changed: 37 additions & 37 deletions

‎.castiron.stats.yml‎

Lines changed: 6 additions & 6 deletions

‎api_reference/openapi.transformed.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51878,11 +51878,11 @@ components:
5187851878
safety_identifier:
5187951879
anyOf:
5188051880
- type: string
51881-
maxLength: 64
51881+
maxLength: 128
5188251882
example: safety-identifier-1234
5188351883
description: |
5188451884
A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.
51885-
The IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
51885+
The IDs should be a string that uniquely identifies each user, with a maximum length of 128 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
5188651886
- type: 'null'
5188751887
prompt_cache_key:
5188851888
anyOf:
@@ -100086,11 +100086,11 @@ components:
100086100086
safety_identifier:
100087100087
anyOf:
100088100088
- type: string
100089-
maxLength: 64
100089+
maxLength: 128
100090100090
example: safety-identifier-1234
100091100091
description: |
100092100092
A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.
100093-
The IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
100093+
The IDs should be a string that uniquely identifies each user, with a maximum length of 128 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
100094100094
- type: 'null'
100095100095
prompt_cache_key:
100096100096
anyOf:

‎src/openai/resources/beta/responses/responses.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def create(
402402
403403
safety_identifier: A stable identifier used to help detect users of your application that may be
404404
violating OpenAI's usage policies. The IDs should be a string that uniquely
405-
identifies each user, with a maximum length of 64 characters. We recommend
405+
identifies each user, with a maximum length of 128 characters. We recommend
406406
hashing their username or email address, in order to avoid sending us any
407407
identifying information.
408408
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -819,7 +819,7 @@ def create(
819819
820820
safety_identifier: A stable identifier used to help detect users of your application that may be
821821
violating OpenAI's usage policies. The IDs should be a string that uniquely
822-
identifies each user, with a maximum length of 64 characters. We recommend
822+
identifies each user, with a maximum length of 128 characters. We recommend
823823
hashing their username or email address, in order to avoid sending us any
824824
identifying information.
825825
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -1229,7 +1229,7 @@ def create(
12291229
12301230
safety_identifier: A stable identifier used to help detect users of your application that may be
12311231
violating OpenAI's usage policies. The IDs should be a string that uniquely
1232-
identifies each user, with a maximum length of 64 characters. We recommend
1232+
identifies each user, with a maximum length of 128 characters. We recommend
12331233
hashing their username or email address, in order to avoid sending us any
12341234
identifying information.
12351235
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -2420,7 +2420,7 @@ async def create(
24202420
24212421
safety_identifier: A stable identifier used to help detect users of your application that may be
24222422
violating OpenAI's usage policies. The IDs should be a string that uniquely
2423-
identifies each user, with a maximum length of 64 characters. We recommend
2423+
identifies each user, with a maximum length of 128 characters. We recommend
24242424
hashing their username or email address, in order to avoid sending us any
24252425
identifying information.
24262426
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -2837,7 +2837,7 @@ async def create(
28372837
28382838
safety_identifier: A stable identifier used to help detect users of your application that may be
28392839
violating OpenAI's usage policies. The IDs should be a string that uniquely
2840-
identifies each user, with a maximum length of 64 characters. We recommend
2840+
identifies each user, with a maximum length of 128 characters. We recommend
28412841
hashing their username or email address, in order to avoid sending us any
28422842
identifying information.
28432843
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -3247,7 +3247,7 @@ async def create(
32473247
32483248
safety_identifier: A stable identifier used to help detect users of your application that may be
32493249
violating OpenAI's usage policies. The IDs should be a string that uniquely
3250-
identifies each user, with a maximum length of 64 characters. We recommend
3250+
identifies each user, with a maximum length of 128 characters. We recommend
32513251
hashing their username or email address, in order to avoid sending us any
32523252
identifying information.
32533253
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).

‎src/openai/resources/chat/completions/completions.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def create(
475475
476476
safety_identifier: A stable identifier used to help detect users of your application that may be
477477
violating OpenAI's usage policies. The IDs should be a string that uniquely
478-
identifies each user, with a maximum length of 64 characters. We recommend
478+
identifies each user, with a maximum length of 128 characters. We recommend
479479
hashing their username or email address, in order to avoid sending us any
480480
identifying information.
481481
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -823,7 +823,7 @@ def create(
823823
824824
safety_identifier: A stable identifier used to help detect users of your application that may be
825825
violating OpenAI's usage policies. The IDs should be a string that uniquely
826-
identifies each user, with a maximum length of 64 characters. We recommend
826+
identifies each user, with a maximum length of 128 characters. We recommend
827827
hashing their username or email address, in order to avoid sending us any
828828
identifying information.
829829
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -1162,7 +1162,7 @@ def create(
11621162
11631163
safety_identifier: A stable identifier used to help detect users of your application that may be
11641164
violating OpenAI's usage policies. The IDs should be a string that uniquely
1165-
identifies each user, with a maximum length of 64 characters. We recommend
1165+
identifies each user, with a maximum length of 128 characters. We recommend
11661166
hashing their username or email address, in order to avoid sending us any
11671167
identifying information.
11681168
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -2109,7 +2109,7 @@ async def create(
21092109
21102110
safety_identifier: A stable identifier used to help detect users of your application that may be
21112111
violating OpenAI's usage policies. The IDs should be a string that uniquely
2112-
identifies each user, with a maximum length of 64 characters. We recommend
2112+
identifies each user, with a maximum length of 128 characters. We recommend
21132113
hashing their username or email address, in order to avoid sending us any
21142114
identifying information.
21152115
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -2457,7 +2457,7 @@ async def create(
24572457
24582458
safety_identifier: A stable identifier used to help detect users of your application that may be
24592459
violating OpenAI's usage policies. The IDs should be a string that uniquely
2460-
identifies each user, with a maximum length of 64 characters. We recommend
2460+
identifies each user, with a maximum length of 128 characters. We recommend
24612461
hashing their username or email address, in order to avoid sending us any
24622462
identifying information.
24632463
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -2796,7 +2796,7 @@ async def create(
27962796
27972797
safety_identifier: A stable identifier used to help detect users of your application that may be
27982798
violating OpenAI's usage policies. The IDs should be a string that uniquely
2799-
identifies each user, with a maximum length of 64 characters. We recommend
2799+
identifies each user, with a maximum length of 128 characters. We recommend
28002800
hashing their username or email address, in order to avoid sending us any
28012801
identifying information.
28022802
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).

‎src/openai/resources/responses/responses.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def create(
310310
311311
safety_identifier: A stable identifier used to help detect users of your application that may be
312312
violating OpenAI's usage policies. The IDs should be a string that uniquely
313-
identifies each user, with a maximum length of 64 characters. We recommend
313+
identifies each user, with a maximum length of 128 characters. We recommend
314314
hashing their username or email address, in order to avoid sending us any
315315
identifying information.
316316
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -609,7 +609,7 @@ def create(
609609
610610
safety_identifier: A stable identifier used to help detect users of your application that may be
611611
violating OpenAI's usage policies. The IDs should be a string that uniquely
612-
identifies each user, with a maximum length of 64 characters. We recommend
612+
identifies each user, with a maximum length of 128 characters. We recommend
613613
hashing their username or email address, in order to avoid sending us any
614614
identifying information.
615615
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -901,7 +901,7 @@ def create(
901901
902902
safety_identifier: A stable identifier used to help detect users of your application that may be
903903
violating OpenAI's usage policies. The IDs should be a string that uniquely
904-
identifies each user, with a maximum length of 64 characters. We recommend
904+
identifies each user, with a maximum length of 128 characters. We recommend
905905
hashing their username or email address, in order to avoid sending us any
906906
identifying information.
907907
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -2219,7 +2219,7 @@ async def create(
22192219
22202220
safety_identifier: A stable identifier used to help detect users of your application that may be
22212221
violating OpenAI's usage policies. The IDs should be a string that uniquely
2222-
identifies each user, with a maximum length of 64 characters. We recommend
2222+
identifies each user, with a maximum length of 128 characters. We recommend
22232223
hashing their username or email address, in order to avoid sending us any
22242224
identifying information.
22252225
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -2518,7 +2518,7 @@ async def create(
25182518
25192519
safety_identifier: A stable identifier used to help detect users of your application that may be
25202520
violating OpenAI's usage policies. The IDs should be a string that uniquely
2521-
identifies each user, with a maximum length of 64 characters. We recommend
2521+
identifies each user, with a maximum length of 128 characters. We recommend
25222522
hashing their username or email address, in order to avoid sending us any
25232523
identifying information.
25242524
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).
@@ -2810,7 +2810,7 @@ async def create(
28102810
28112811
safety_identifier: A stable identifier used to help detect users of your application that may be
28122812
violating OpenAI's usage policies. The IDs should be a string that uniquely
2813-
identifies each user, with a maximum length of 64 characters. We recommend
2813+
identifies each user, with a maximum length of 128 characters. We recommend
28142814
hashing their username or email address, in order to avoid sending us any
28152815
identifying information.
28162816
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).

‎src/openai/types/beta/beta_response.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ class BetaResponse(BaseModel):
632632
"""
633633
A stable identifier used to help detect users of your application that may be
634634
violating OpenAI's usage policies. The IDs should be a string that uniquely
635-
identifies each user, with a maximum length of 64 characters. We recommend
635+
identifies each user, with a maximum length of 128 characters. We recommend
636636
hashing their username or email address, in order to avoid sending us any
637637
identifying information.
638638
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).

‎src/openai/types/beta/beta_responses_client_event.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ class ResponseCreate(BaseModel):
545545
"""
546546
A stable identifier used to help detect users of your application that may be
547547
violating OpenAI's usage policies. The IDs should be a string that uniquely
548-
identifies each user, with a maximum length of 64 characters. We recommend
548+
identifies each user, with a maximum length of 128 characters. We recommend
549549
hashing their username or email address, in order to avoid sending us any
550550
identifying information.
551551
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).

‎src/openai/types/beta/beta_responses_client_event_param.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ class ResponseCreate(TypedDict, total=False):
544544
"""
545545
A stable identifier used to help detect users of your application that may be
546546
violating OpenAI's usage policies. The IDs should be a string that uniquely
547-
identifies each user, with a maximum length of 64 characters. We recommend
547+
identifies each user, with a maximum length of 128 characters. We recommend
548548
hashing their username or email address, in order to avoid sending us any
549549
identifying information.
550550
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).

‎src/openai/types/beta/response_create_params.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class ResponseCreateParamsBase(TypedDict, total=False):
326326
"""
327327
A stable identifier used to help detect users of your application that may be
328328
violating OpenAI's usage policies. The IDs should be a string that uniquely
329-
identifies each user, with a maximum length of 64 characters. We recommend
329+
identifies each user, with a maximum length of 128 characters. We recommend
330330
hashing their username or email address, in order to avoid sending us any
331331
identifying information.
332332
[Learn more](https://developers.openai.com/api/docs/guides/safety-best-practices#implement-safety-identifiers).

‎src/openai/types/chat/completion_create_params.py‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)