openai 0.49.0 → 0.49.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +1 -1
  4. data/lib/openai/models/chat/completion_create_params.rb +3 -2
  5. data/lib/openai/models/responses/response.rb +3 -2
  6. data/lib/openai/models/responses/response_create_params.rb +3 -2
  7. data/lib/openai/models/responses/responses_client_event.rb +590 -0
  8. data/lib/openai/models/responses/responses_server_event.rb +201 -0
  9. data/lib/openai/models/vector_stores/file_batch_create_params.rb +4 -2
  10. data/lib/openai/resources/audio/speech.rb +2 -0
  11. data/lib/openai/resources/audio/transcriptions.rb +6 -0
  12. data/lib/openai/resources/beta/chatkit/sessions.rb +4 -2
  13. data/lib/openai/resources/beta/chatkit/threads.rb +4 -4
  14. data/lib/openai/resources/chat/completions.rb +6 -0
  15. data/lib/openai/resources/completions.rb +6 -0
  16. data/lib/openai/resources/realtime/client_secrets.rb +14 -0
  17. data/lib/openai/resources/responses/input_tokens.rb +4 -1
  18. data/lib/openai/resources/responses.rb +6 -1
  19. data/lib/openai/resources/skills/content.rb +1 -1
  20. data/lib/openai/resources/skills/versions/content.rb +1 -1
  21. data/lib/openai/resources/skills/versions.rb +4 -4
  22. data/lib/openai/resources/skills.rb +5 -5
  23. data/lib/openai/resources/uploads.rb +7 -1
  24. data/lib/openai/resources/videos.rb +8 -6
  25. data/lib/openai/version.rb +1 -1
  26. data/lib/openai.rb +2 -0
  27. data/rbi/openai/models/chat/completion_create_params.rbi +6 -4
  28. data/rbi/openai/models/responses/response.rbi +6 -4
  29. data/rbi/openai/models/responses/response_create_params.rbi +6 -4
  30. data/rbi/openai/models/responses/responses_client_event.rbi +1122 -0
  31. data/rbi/openai/models/responses/responses_server_event.rbi +79 -0
  32. data/rbi/openai/models/vector_stores/file_batch_create_params.rbi +8 -4
  33. data/rbi/openai/resources/audio/speech.rbi +2 -0
  34. data/rbi/openai/resources/audio/transcriptions.rbi +6 -0
  35. data/rbi/openai/resources/beta/chatkit/sessions.rbi +4 -2
  36. data/rbi/openai/resources/beta/chatkit/threads.rbi +4 -4
  37. data/rbi/openai/resources/chat/completions.rbi +12 -4
  38. data/rbi/openai/resources/completions.rbi +6 -0
  39. data/rbi/openai/resources/realtime/client_secrets.rbi +14 -0
  40. data/rbi/openai/resources/responses/input_tokens.rbi +4 -1
  41. data/rbi/openai/resources/responses.rbi +12 -5
  42. data/rbi/openai/resources/skills/content.rbi +1 -1
  43. data/rbi/openai/resources/skills/versions/content.rbi +1 -1
  44. data/rbi/openai/resources/skills/versions.rbi +4 -4
  45. data/rbi/openai/resources/skills.rbi +5 -5
  46. data/rbi/openai/resources/uploads.rbi +7 -1
  47. data/rbi/openai/resources/vector_stores/file_batches.rbi +4 -2
  48. data/rbi/openai/resources/videos.rbi +8 -6
  49. data/sig/openai/models/responses/responses_client_event.rbs +286 -0
  50. data/sig/openai/models/responses/responses_server_event.rbs +66 -0
  51. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4455ec812f2b1ec80ac2e086894901e14552ba5fad60fc4a7827f3bdb4d255ab
4
- data.tar.gz: 222075e67c19c086c41badfcf628512f0f552343fc5855813b66ac9aa4774a29
3
+ metadata.gz: 2f34d18042a6ab2826128026a9c7fb5bd1a93abf9ee6c475a5d168560094677b
4
+ data.tar.gz: aa73e8a5f85adfd6b5b6436cfc02cb07d8dea6443a74cf8b755b4298991176b4
5
5
  SHA512:
6
- metadata.gz: 8e574a5cca75905899eafb9070ebd888c374d28f9557a0cb4b3967df603c9c728b21811c85ed653959143c665437f1f942ce9276383c0eed43bcc680fd7206ba
7
- data.tar.gz: ab253d764f10ea694bc78415c60359d98568cf5b344570f9a3a6370ea56f4b5fc51f7b220a921a51d5cf0ccca2e85877f29f5fbb710ae0f6b63dca58ab95be96
6
+ metadata.gz: 8910aed1db556d26ba8372b674c799936dd12f30c4c00d7c2ca3bbd09fd2df5743e33fae034087d81cfa239ebfe2b0f12821e3884b019c8c6609179489daceeb
7
+ data.tar.gz: 8aeabebae2ca9742924adf7dc71037da21ad33b713c0e0c0773f9dcd58b46afa49de0c05fd4dfb636442aa73c357583225e2ee3539396437a0db4680066f6760
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.49.1 (2026-02-23)
4
+
5
+ Full Changelog: [v0.49.0...v0.49.1](https://github.com/openai/openai-ruby/compare/v0.49.0...v0.49.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **api:** manual updates ([6d59acd](https://github.com/openai/openai-ruby/commit/6d59acd6875dad00aa7abefc9b8629e68d4068ff))
10
+
11
+
12
+ ### Chores
13
+
14
+ * update mock server docs ([4ab9773](https://github.com/openai/openai-ruby/commit/4ab97731fd3d59dde01eae01ad6b09b962475724))
15
+
16
+
17
+ ### Documentation
18
+
19
+ * **api:** add batch size limit to vector_stores file_batch_create_params ([f8f915b](https://github.com/openai/openai-ruby/commit/f8f915b791433e804256e27e76d48f61fefd0aa3))
20
+ * **api:** add length limit to safety_identifier in chat/responses ([f76fd6f](https://github.com/openai/openai-ruby/commit/f76fd6fd8ac3c4d63199e71fcfd9ae20bd9050d0))
21
+ * **api:** enhance method descriptions and return value docs across resources ([6ac3366](https://github.com/openai/openai-ruby/commit/6ac336621101468f74758c5b7eff56a8b14cb69d))
22
+
3
23
  ## 0.49.0 (2026-02-13)
4
24
 
5
25
  Full Changelog: [v0.48.0...v0.49.0](https://github.com/openai/openai-ruby/compare/v0.48.0...v0.49.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "openai", "~> 0.49.0"
18
+ gem "openai", "~> 0.49.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -237,8 +237,9 @@ module OpenAI
237
237
  # @!attribute safety_identifier
238
238
  # A stable identifier used to help detect users of your application that may be
239
239
  # violating OpenAI's usage policies. The IDs should be a string that uniquely
240
- # identifies each user. We recommend hashing their username or email address, in
241
- # order to avoid sending us any identifying information.
240
+ # identifies each user, with a maximum length of 64 characters. We recommend
241
+ # hashing their username or email address, in order to avoid sending us any
242
+ # identifying information.
242
243
  # [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
243
244
  #
244
245
  # @return [String, nil]
@@ -222,8 +222,9 @@ module OpenAI
222
222
  # @!attribute safety_identifier
223
223
  # A stable identifier used to help detect users of your application that may be
224
224
  # violating OpenAI's usage policies. The IDs should be a string that uniquely
225
- # identifies each user. We recommend hashing their username or email address, in
226
- # order to avoid sending us any identifying information.
225
+ # identifies each user, with a maximum length of 64 characters. We recommend
226
+ # hashing their username or email address, in order to avoid sending us any
227
+ # identifying information.
227
228
  # [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
228
229
  #
229
230
  # @return [String, nil]
@@ -180,8 +180,9 @@ module OpenAI
180
180
  # @!attribute safety_identifier
181
181
  # A stable identifier used to help detect users of your application that may be
182
182
  # violating OpenAI's usage policies. The IDs should be a string that uniquely
183
- # identifies each user. We recommend hashing their username or email address, in
184
- # order to avoid sending us any identifying information.
183
+ # identifies each user, with a maximum length of 64 characters. We recommend
184
+ # hashing their username or email address, in order to avoid sending us any
185
+ # identifying information.
185
186
  # [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
186
187
  #
187
188
  # @return [String, nil]