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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/openai/models/batch_create_params.rb +8 -6
- data/lib/openai/version.rb +1 -1
- data/rbi/openai/models/batch_create_params.rbi +19 -9
- data/rbi/openai/resources/batches.rbi +3 -3
- data/sig/openai/models/batch_create_params.rbs +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: af2bb430a407559b10dd6255d45c82e79cea4f1098c3ae5811c1509adb2a9e1e
|
|
4
|
+
data.tar.gz: d516b0288de9023f408e4622d22cc7f95639bd40fbc0619b0bcda528526a3048
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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
|
-
#
|
|
21
|
-
#
|
|
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
|
-
#
|
|
89
|
-
#
|
|
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>]
|
data/lib/openai/version.rb
CHANGED
|
@@ -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
|
-
#
|
|
22
|
-
#
|
|
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
|
-
#
|
|
80
|
-
#
|
|
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
|
-
#
|
|
152
|
-
#
|
|
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
|
-
#
|
|
26
|
-
#
|
|
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
|