openai 0.112.0 → 0.114.0

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 (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +1 -1
  4. data/lib/openai/auth/subject_token_providers/azure_managed_identity_token_provider.rb +10 -8
  5. data/lib/openai/auth/subject_token_providers/gcp_id_token_provider.rb +8 -7
  6. data/lib/openai/models/beta/beta_response.rb +3 -0
  7. data/lib/openai/models/beta/beta_response_input_file.rb +9 -9
  8. data/lib/openai/models/beta/beta_response_input_file_content.rb +9 -9
  9. data/lib/openai/models/beta/beta_response_input_image.rb +9 -9
  10. data/lib/openai/models/beta/beta_response_input_image_content.rb +9 -9
  11. data/lib/openai/models/beta/beta_response_input_text.rb +9 -9
  12. data/lib/openai/models/beta/beta_response_input_text_content.rb +9 -9
  13. data/lib/openai/models/beta/beta_response_item.rb +9 -9
  14. data/lib/openai/models/beta/beta_response_output_item.rb +9 -9
  15. data/lib/openai/models/beta/beta_responses_client_event.rb +3 -0
  16. data/lib/openai/models/beta/response_compact_params.rb +3 -0
  17. data/lib/openai/models/beta/response_create_params.rb +3 -0
  18. data/lib/openai/models/chat/chat_completion_content_part.rb +9 -9
  19. data/lib/openai/models/chat/chat_completion_content_part_image.rb +9 -9
  20. data/lib/openai/models/chat/chat_completion_content_part_input_audio.rb +9 -9
  21. data/lib/openai/models/chat/chat_completion_content_part_text.rb +9 -9
  22. data/lib/openai/models/chat_model.rb +1 -0
  23. data/lib/openai/models/conversations/computer_screenshot_content.rb +9 -9
  24. data/lib/openai/models/responses/response_compact_params.rb +3 -0
  25. data/lib/openai/models/responses/response_input_file.rb +9 -9
  26. data/lib/openai/models/responses/response_input_file_content.rb +9 -9
  27. data/lib/openai/models/responses/response_input_image.rb +9 -9
  28. data/lib/openai/models/responses/response_input_image_content.rb +9 -9
  29. data/lib/openai/models/responses/response_input_text.rb +9 -9
  30. data/lib/openai/models/responses/response_input_text_content.rb +9 -9
  31. data/lib/openai/version.rb +1 -1
  32. data/rbi/openai/models/beta/beta_response.rbi +1 -0
  33. data/rbi/openai/models/beta/beta_response_input_file.rbi +9 -9
  34. data/rbi/openai/models/beta/beta_response_input_file_content.rbi +9 -9
  35. data/rbi/openai/models/beta/beta_response_input_image.rbi +9 -9
  36. data/rbi/openai/models/beta/beta_response_input_image_content.rbi +9 -9
  37. data/rbi/openai/models/beta/beta_response_input_text.rbi +9 -9
  38. data/rbi/openai/models/beta/beta_response_input_text_content.rbi +9 -9
  39. data/rbi/openai/models/beta/beta_response_item.rbi +9 -9
  40. data/rbi/openai/models/beta/beta_response_output_item.rbi +9 -9
  41. data/rbi/openai/models/beta/beta_responses_client_event.rbi +4 -0
  42. data/rbi/openai/models/beta/response_compact_params.rbi +1 -0
  43. data/rbi/openai/models/beta/response_create_params.rbi +1 -0
  44. data/rbi/openai/models/chat/chat_completion_content_part.rbi +9 -9
  45. data/rbi/openai/models/chat/chat_completion_content_part_image.rbi +9 -9
  46. data/rbi/openai/models/chat/chat_completion_content_part_input_audio.rbi +9 -9
  47. data/rbi/openai/models/chat/chat_completion_content_part_text.rbi +9 -9
  48. data/rbi/openai/models/chat_model.rbi +1 -0
  49. data/rbi/openai/models/conversations/computer_screenshot_content.rbi +9 -9
  50. data/rbi/openai/models/responses/response_compact_params.rbi +1 -0
  51. data/rbi/openai/models/responses/response_input_file.rbi +9 -9
  52. data/rbi/openai/models/responses/response_input_file_content.rbi +9 -9
  53. data/rbi/openai/models/responses/response_input_image.rbi +9 -9
  54. data/rbi/openai/models/responses/response_input_image_content.rbi +9 -9
  55. data/rbi/openai/models/responses/response_input_text.rbi +9 -9
  56. data/rbi/openai/models/responses/response_input_text_content.rbi +9 -9
  57. data/sig/openai/models/beta/beta_response.rbs +2 -0
  58. data/sig/openai/models/beta/beta_response_input_file.rbs +9 -9
  59. data/sig/openai/models/beta/beta_response_input_file_content.rbs +6 -6
  60. data/sig/openai/models/beta/beta_response_input_image.rbs +9 -9
  61. data/sig/openai/models/beta/beta_response_input_image_content.rbs +6 -6
  62. data/sig/openai/models/beta/beta_response_input_text.rbs +9 -9
  63. data/sig/openai/models/beta/beta_response_input_text_content.rbs +6 -6
  64. data/sig/openai/models/beta/beta_response_item.rbs +9 -9
  65. data/sig/openai/models/beta/beta_response_output_item.rbs +9 -9
  66. data/sig/openai/models/beta/beta_responses_client_event.rbs +2 -0
  67. data/sig/openai/models/beta/response_compact_params.rbs +2 -0
  68. data/sig/openai/models/beta/response_create_params.rbs +2 -0
  69. data/sig/openai/models/chat/chat_completion_content_part.rbs +9 -9
  70. data/sig/openai/models/chat/chat_completion_content_part_image.rbs +9 -9
  71. data/sig/openai/models/chat/chat_completion_content_part_input_audio.rbs +9 -9
  72. data/sig/openai/models/chat/chat_completion_content_part_text.rbs +9 -9
  73. data/sig/openai/models/chat_model.rbs +2 -0
  74. data/sig/openai/models/conversations/computer_screenshot_content.rbs +9 -9
  75. data/sig/openai/models/responses/response_compact_params.rbs +2 -0
  76. data/sig/openai/models/responses/response_input_file.rbs +9 -9
  77. data/sig/openai/models/responses/response_input_file_content.rbs +6 -6
  78. data/sig/openai/models/responses/response_input_image.rbs +9 -9
  79. data/sig/openai/models/responses/response_input_image_content.rbs +6 -6
  80. data/sig/openai/models/responses/response_input_text.rbs +9 -9
  81. data/sig/openai/models/responses/response_input_text_content.rbs +6 -6
  82. metadata +1 -1
@@ -25,9 +25,9 @@ module OpenAI
25
25
  # encoded image in a data URL.
26
26
  attr_accessor image_url: String?
27
27
 
28
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
29
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
30
- # token block.
28
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
29
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
30
+ # not rounded to a token block.
31
31
  attr_accessor prompt_cache_breakpoint: OpenAI::Responses::ResponseInputImageContent::PromptCacheBreakpoint?
32
32
 
33
33
  # @param detail
@@ -39,9 +39,9 @@ module OpenAI
39
39
  # The URL of the image to be sent to the model. A fully qualified URL or base64
40
40
  # encoded image in a data URL.
41
41
  # @param prompt_cache_breakpoint
42
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
43
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
44
- # token block.
42
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
43
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
44
+ # not rounded to a token block.
45
45
  # @param type
46
46
  # The type of the input item. Always `input_image`.
47
47
  def initialize: (
@@ -15,14 +15,14 @@ module OpenAI
15
15
  # The type of the input item. Always `input_text`.
16
16
  attr_accessor type: :input_text
17
17
 
18
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
19
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
20
- # token block.
18
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
19
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
20
+ # not rounded to a token block.
21
21
  attr_reader prompt_cache_breakpoint: OpenAI::Responses::ResponseInputText::PromptCacheBreakpoint?
22
22
 
23
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
24
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
25
- # token block.
23
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
24
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
25
+ # not rounded to a token block.
26
26
  def prompt_cache_breakpoint=: (
27
27
  OpenAI::Responses::ResponseInputText::PromptCacheBreakpoint
28
28
  ) -> OpenAI::Responses::ResponseInputText::PromptCacheBreakpoint
@@ -30,9 +30,9 @@ module OpenAI
30
30
  # @param text
31
31
  # The text input to the model.
32
32
  # @param prompt_cache_breakpoint
33
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
34
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
35
- # token block.
33
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
34
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
35
+ # not rounded to a token block.
36
36
  # @param type
37
37
  # The type of the input item. Always `input_text`.
38
38
  def initialize: (
@@ -15,17 +15,17 @@ module OpenAI
15
15
  # The type of the input item. Always `input_text`.
16
16
  attr_accessor type: :input_text
17
17
 
18
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
19
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
20
- # token block.
18
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
19
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
20
+ # not rounded to a token block.
21
21
  attr_accessor prompt_cache_breakpoint: OpenAI::Responses::ResponseInputTextContent::PromptCacheBreakpoint?
22
22
 
23
23
  # @param text
24
24
  # The text input to the model.
25
25
  # @param prompt_cache_breakpoint
26
- # Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
27
- # from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
28
- # token block.
26
+ # Marks the exact end of a reusable prompt prefix. When `ttl` is omitted, the
27
+ # breakpoint inherits the request's `prompt_cache_options.ttl`; the boundary is
28
+ # not rounded to a token block.
29
29
  # @param type
30
30
  # The type of the input item. Always `input_text`.
31
31
  def initialize: (
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.112.0
4
+ version: 0.114.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAI