openai 0.47.0 → 0.48.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e87f93df3497e32ada353e5de4be401dbbf9c79bd381d65e8429ecda93b1705
4
- data.tar.gz: eb59d4b99289d74e75f3d09fb4236b8a385981554e61b20fb2011aa07b145fb5
3
+ metadata.gz: af2bb430a407559b10dd6255d45c82e79cea4f1098c3ae5811c1509adb2a9e1e
4
+ data.tar.gz: d516b0288de9023f408e4622d22cc7f95639bd40fbc0619b0bcda528526a3048
5
5
  SHA512:
6
- metadata.gz: 60aab96792238b95f55b3ac9057340c9455484dbbecf98464859994a3acb8f3d5d4f6553fbc5c96946e4e75e7d9801a011b5fad2620d7c0c78c7c3033c1d2a2a
7
- data.tar.gz: 16a48a83c5950a2efe7fe1c9c5b39c34902e05ac838b1cbf047515677bcf77688153f30fec96fbe885c980b6058438cd35bb9699a7a6efd7ec71e9b61f05c162
6
+ metadata.gz: 142aec2c352a2ea07a77cc9ce5373525bf08efbeececca7842660daaf7cd283ea26d24ff3001eb8716832f2b7e1eaada61a28c8f603cd33e72b31af742548dba
7
+ data.tar.gz: 779b0bf36d46c09679a0a2cb02f0acf326f7837454ad1a8ef4b8a260ffc444abc3aa7e5e2c1d04ae3a34cedc76c82ece2f536f62ed5a2ce44005ae135547bb7e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.48.0 (2026-02-10)
4
+
5
+ Full Changelog: [v0.47.0...v0.48.0](https://github.com/openai/openai-ruby/compare/v0.47.0...v0.48.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** support for images in batch api ([fc847f5](https://github.com/openai/openai-ruby/commit/fc847f59d745e86bf0f93e7886612dae910e19b6))
10
+
3
11
  ## 0.47.0 (2026-02-10)
4
12
 
5
13
  Full Changelog: [v0.46.0...v0.47.0](https://github.com/openai/openai-ruby/compare/v0.46.0...v0.47.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.47.0"
18
+ gem "openai", "~> 0.48.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -17,9 +17,9 @@ module OpenAI
17
17
  # @!attribute endpoint
18
18
  # The endpoint to be used for all requests in the batch. Currently
19
19
  # `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`,
20
- # and `/v1/moderations` are supported. Note that `/v1/embeddings` batches are also
21
- # restricted to a maximum of 50,000 embedding inputs across all requests in the
22
- # batch.
20
+ # `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are
21
+ # supported. Note that `/v1/embeddings` batches are also restricted to a maximum
22
+ # of 50,000 embedding inputs across all requests in the batch.
23
23
  #
24
24
  # @return [Symbol, OpenAI::Models::BatchCreateParams::Endpoint]
25
25
  required :endpoint, enum: -> { OpenAI::BatchCreateParams::Endpoint }
@@ -85,9 +85,9 @@ module OpenAI
85
85
 
86
86
  # The endpoint to be used for all requests in the batch. Currently
87
87
  # `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`,
88
- # and `/v1/moderations` are supported. Note that `/v1/embeddings` batches are also
89
- # restricted to a maximum of 50,000 embedding inputs across all requests in the
90
- # batch.
88
+ # `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are
89
+ # supported. Note that `/v1/embeddings` batches are also restricted to a maximum
90
+ # of 50,000 embedding inputs across all requests in the batch.
91
91
  module Endpoint
92
92
  extend OpenAI::Internal::Type::Enum
93
93
 
@@ -96,6 +96,8 @@ module OpenAI
96
96
  V1_EMBEDDINGS = :"/v1/embeddings"
97
97
  V1_COMPLETIONS = :"/v1/completions"
98
98
  V1_MODERATIONS = :"/v1/moderations"
99
+ V1_IMAGES_GENERATIONS = :"/v1/images/generations"
100
+ V1_IMAGES_EDITS = :"/v1/images/edits"
99
101
 
100
102
  # @!method self.values
101
103
  # @return [Array<Symbol>]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenAI
4
- VERSION = "0.47.0"
4
+ VERSION = "0.48.0"
5
5
  end
@@ -18,9 +18,9 @@ module OpenAI
18
18
 
19
19
  # The endpoint to be used for all requests in the batch. Currently
20
20
  # `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`,
21
- # and `/v1/moderations` are supported. Note that `/v1/embeddings` batches are also
22
- # restricted to a maximum of 50,000 embedding inputs across all requests in the
23
- # batch.
21
+ # `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are
22
+ # supported. Note that `/v1/embeddings` batches are also restricted to a maximum
23
+ # of 50,000 embedding inputs across all requests in the batch.
24
24
  sig { returns(OpenAI::BatchCreateParams::Endpoint::OrSymbol) }
25
25
  attr_accessor :endpoint
26
26
 
@@ -76,9 +76,9 @@ module OpenAI
76
76
  completion_window:,
77
77
  # The endpoint to be used for all requests in the batch. Currently
78
78
  # `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`,
79
- # and `/v1/moderations` are supported. Note that `/v1/embeddings` batches are also
80
- # restricted to a maximum of 50,000 embedding inputs across all requests in the
81
- # batch.
79
+ # `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are
80
+ # supported. Note that `/v1/embeddings` batches are also restricted to a maximum
81
+ # of 50,000 embedding inputs across all requests in the batch.
82
82
  endpoint:,
83
83
  # The ID of an uploaded file that contains requests for the new batch.
84
84
  #
@@ -148,9 +148,9 @@ module OpenAI
148
148
 
149
149
  # The endpoint to be used for all requests in the batch. Currently
150
150
  # `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`,
151
- # and `/v1/moderations` are supported. Note that `/v1/embeddings` batches are also
152
- # restricted to a maximum of 50,000 embedding inputs across all requests in the
153
- # batch.
151
+ # `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are
152
+ # supported. Note that `/v1/embeddings` batches are also restricted to a maximum
153
+ # of 50,000 embedding inputs across all requests in the batch.
154
154
  module Endpoint
155
155
  extend OpenAI::Internal::Type::Enum
156
156
 
@@ -183,6 +183,16 @@ module OpenAI
183
183
  :"/v1/moderations",
184
184
  OpenAI::BatchCreateParams::Endpoint::TaggedSymbol
185
185
  )
186
+ V1_IMAGES_GENERATIONS =
187
+ T.let(
188
+ :"/v1/images/generations",
189
+ OpenAI::BatchCreateParams::Endpoint::TaggedSymbol
190
+ )
191
+ V1_IMAGES_EDITS =
192
+ T.let(
193
+ :"/v1/images/edits",
194
+ OpenAI::BatchCreateParams::Endpoint::TaggedSymbol
195
+ )
186
196
 
187
197
  sig do
188
198
  override.returns(
@@ -22,9 +22,9 @@ module OpenAI
22
22
  completion_window:,
23
23
  # The endpoint to be used for all requests in the batch. Currently
24
24
  # `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`,
25
- # and `/v1/moderations` are supported. Note that `/v1/embeddings` batches are also
26
- # restricted to a maximum of 50,000 embedding inputs across all requests in the
27
- # batch.
25
+ # `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are
26
+ # supported. Note that `/v1/embeddings` batches are also restricted to a maximum
27
+ # of 50,000 embedding inputs across all requests in the batch.
28
28
  endpoint:,
29
29
  # The ID of an uploaded file that contains requests for the new batch.
30
30
  #
@@ -62,6 +62,8 @@ module OpenAI
62
62
  | :"/v1/embeddings"
63
63
  | :"/v1/completions"
64
64
  | :"/v1/moderations"
65
+ | :"/v1/images/generations"
66
+ | :"/v1/images/edits"
65
67
 
66
68
  module Endpoint
67
69
  extend OpenAI::Internal::Type::Enum
@@ -71,6 +73,8 @@ module OpenAI
71
73
  V1_EMBEDDINGS: :"/v1/embeddings"
72
74
  V1_COMPLETIONS: :"/v1/completions"
73
75
  V1_MODERATIONS: :"/v1/moderations"
76
+ V1_IMAGES_GENERATIONS: :"/v1/images/generations"
77
+ V1_IMAGES_EDITS: :"/v1/images/edits"
74
78
 
75
79
  def self?.values: -> ::Array[OpenAI::Models::BatchCreateParams::endpoint]
76
80
  end
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.47.0
4
+ version: 0.48.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAI