openai 0.73.0 → 0.74.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/beta/beta_response.rb +15 -6
- data/lib/openai/models/beta/beta_responses_client_event.rb +15 -6
- data/lib/openai/models/beta/response_create_params.rb +15 -6
- data/lib/openai/models/chat/chat_completion.rb +15 -6
- data/lib/openai/models/chat/chat_completion_chunk.rb +15 -6
- data/lib/openai/models/chat/completion_create_params.rb +15 -6
- data/lib/openai/models/responses/response.rb +15 -6
- data/lib/openai/models/responses/response_create_params.rb +15 -6
- data/lib/openai/models/responses/responses_client_event.rb +15 -6
- data/lib/openai/version.rb +1 -1
- data/rbi/openai/models/beta/beta_response.rbi +23 -9
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +26 -9
- data/rbi/openai/models/beta/response_create_params.rbi +26 -9
- data/rbi/openai/models/chat/chat_completion.rbi +26 -9
- data/rbi/openai/models/chat/chat_completion_chunk.rbi +26 -9
- data/rbi/openai/models/chat/completion_create_params.rbi +26 -9
- data/rbi/openai/models/responses/response.rbi +23 -9
- data/rbi/openai/models/responses/response_create_params.rbi +26 -9
- data/rbi/openai/models/responses/responses_client_event.rbi +26 -9
- data/rbi/openai/resources/beta/responses.rbi +14 -6
- data/rbi/openai/resources/chat/completions.rbi +14 -6
- data/rbi/openai/resources/responses.rbi +14 -6
- data/sig/openai/models/beta/beta_response.rbs +3 -1
- data/sig/openai/models/beta/beta_responses_client_event.rbs +3 -1
- data/sig/openai/models/beta/response_create_params.rbs +3 -1
- data/sig/openai/models/chat/chat_completion.rbs +3 -1
- data/sig/openai/models/chat/chat_completion_chunk.rbs +3 -1
- data/sig/openai/models/chat/completion_create_params.rbs +3 -1
- data/sig/openai/models/responses/response.rbs +3 -1
- data/sig/openai/models/responses/response_create_params.rbs +3 -1
- data/sig/openai/models/responses/responses_client_event.rbs +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e15647c84c14cc64a8534b798c574db9f0136f734337db3d08a5f682b665eef
|
|
4
|
+
data.tar.gz: 98d82a2c561be991ce27e4d70917ab87ecbdecc253c4847457dbe58950f08954
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78bab0c2d6d33997ba5b81a2805a71bc00cd0fb8e116e057aa55bf4beed5e3992df65cfa41968ae985109295e74511b60eb0c935d52f8e75f4c1eac5454b637a
|
|
7
|
+
data.tar.gz: 4175e30bb0c664a56e0229ea30d57eac555103463ba496d123c6b439c1a812da5c234de046dca7a9e78ba090a659b71a9191db2c16e21e1829f3d82bd67343c9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.74.0 (2026-07-30)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.73.0...v0.74.0](https://github.com/openai/openai-ruby/compare/v0.73.0...v0.74.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** fast tier ([4165ec8](https://github.com/openai/openai-ruby/commit/4165ec8e6bc100f932e3787d6c5412e89496c0e9))
|
|
10
|
+
|
|
3
11
|
## 0.73.0 (2026-07-28)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.72.0...v0.73.0](https://github.com/openai/openai-ruby/compare/v0.72.0...v0.73.0)
|
data/README.md
CHANGED
|
@@ -267,9 +267,13 @@ module OpenAI
|
|
|
267
267
|
# will use 'default'.
|
|
268
268
|
# - If set to 'default', then the request will be processed with the standard
|
|
269
269
|
# pricing and performance for the selected model.
|
|
270
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
271
|
-
#
|
|
272
|
-
#
|
|
270
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
271
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
272
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
273
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
274
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
275
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
276
|
+
# request.
|
|
273
277
|
# - When not set, the default behavior is 'auto'.
|
|
274
278
|
#
|
|
275
279
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -1381,9 +1385,13 @@ module OpenAI
|
|
|
1381
1385
|
# will use 'default'.
|
|
1382
1386
|
# - If set to 'default', then the request will be processed with the standard
|
|
1383
1387
|
# pricing and performance for the selected model.
|
|
1384
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
1385
|
-
#
|
|
1386
|
-
#
|
|
1388
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
1389
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
1390
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
1391
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
1392
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
1393
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
1394
|
+
# request.
|
|
1387
1395
|
# - When not set, the default behavior is 'auto'.
|
|
1388
1396
|
#
|
|
1389
1397
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -1400,6 +1408,7 @@ module OpenAI
|
|
|
1400
1408
|
FLEX = :flex
|
|
1401
1409
|
SCALE = :scale
|
|
1402
1410
|
PRIORITY = :priority
|
|
1411
|
+
FAST = :fast
|
|
1403
1412
|
|
|
1404
1413
|
# @!method self.values
|
|
1405
1414
|
# @return [Array<Symbol>]
|
|
@@ -263,9 +263,13 @@ module OpenAI
|
|
|
263
263
|
# will use 'default'.
|
|
264
264
|
# - If set to 'default', then the request will be processed with the standard
|
|
265
265
|
# pricing and performance for the selected model.
|
|
266
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
267
|
-
#
|
|
268
|
-
#
|
|
266
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
267
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
268
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
269
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
270
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
271
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
272
|
+
# request.
|
|
269
273
|
# - When not set, the default behavior is 'auto'.
|
|
270
274
|
#
|
|
271
275
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -1302,9 +1306,13 @@ module OpenAI
|
|
|
1302
1306
|
# will use 'default'.
|
|
1303
1307
|
# - If set to 'default', then the request will be processed with the standard
|
|
1304
1308
|
# pricing and performance for the selected model.
|
|
1305
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
1306
|
-
#
|
|
1307
|
-
#
|
|
1309
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
1310
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
1311
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
1312
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
1313
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
1314
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
1315
|
+
# request.
|
|
1308
1316
|
# - When not set, the default behavior is 'auto'.
|
|
1309
1317
|
#
|
|
1310
1318
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -1321,6 +1329,7 @@ module OpenAI
|
|
|
1321
1329
|
FLEX = :flex
|
|
1322
1330
|
SCALE = :scale
|
|
1323
1331
|
PRIORITY = :priority
|
|
1332
|
+
FAST = :fast
|
|
1324
1333
|
|
|
1325
1334
|
# @!method self.values
|
|
1326
1335
|
# @return [Array<Symbol>]
|
|
@@ -233,9 +233,13 @@ module OpenAI
|
|
|
233
233
|
# will use 'default'.
|
|
234
234
|
# - If set to 'default', then the request will be processed with the standard
|
|
235
235
|
# pricing and performance for the selected model.
|
|
236
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
237
|
-
#
|
|
238
|
-
#
|
|
236
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
237
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
238
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
239
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
240
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
241
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
242
|
+
# request.
|
|
239
243
|
# - When not set, the default behavior is 'auto'.
|
|
240
244
|
#
|
|
241
245
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -1218,9 +1222,13 @@ module OpenAI
|
|
|
1218
1222
|
# will use 'default'.
|
|
1219
1223
|
# - If set to 'default', then the request will be processed with the standard
|
|
1220
1224
|
# pricing and performance for the selected model.
|
|
1221
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
1222
|
-
#
|
|
1223
|
-
#
|
|
1225
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
1226
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
1227
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
1228
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
1229
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
1230
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
1231
|
+
# request.
|
|
1224
1232
|
# - When not set, the default behavior is 'auto'.
|
|
1225
1233
|
#
|
|
1226
1234
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -1235,6 +1243,7 @@ module OpenAI
|
|
|
1235
1243
|
FLEX = :flex
|
|
1236
1244
|
SCALE = :scale
|
|
1237
1245
|
PRIORITY = :priority
|
|
1246
|
+
FAST = :fast
|
|
1238
1247
|
|
|
1239
1248
|
# @!method self.values
|
|
1240
1249
|
# @return [Array<Symbol>]
|
|
@@ -53,9 +53,13 @@ module OpenAI
|
|
|
53
53
|
# will use 'default'.
|
|
54
54
|
# - If set to 'default', then the request will be processed with the standard
|
|
55
55
|
# pricing and performance for the selected model.
|
|
56
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
57
|
-
#
|
|
58
|
-
#
|
|
56
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
57
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
58
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
59
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
60
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
61
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
62
|
+
# request.
|
|
59
63
|
# - When not set, the default behavior is 'auto'.
|
|
60
64
|
#
|
|
61
65
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -534,9 +538,13 @@ module OpenAI
|
|
|
534
538
|
# will use 'default'.
|
|
535
539
|
# - If set to 'default', then the request will be processed with the standard
|
|
536
540
|
# pricing and performance for the selected model.
|
|
537
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
538
|
-
#
|
|
539
|
-
#
|
|
541
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
542
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
543
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
544
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
545
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
546
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
547
|
+
# request.
|
|
540
548
|
# - When not set, the default behavior is 'auto'.
|
|
541
549
|
#
|
|
542
550
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -553,6 +561,7 @@ module OpenAI
|
|
|
553
561
|
FLEX = :flex
|
|
554
562
|
SCALE = :scale
|
|
555
563
|
PRIORITY = :priority
|
|
564
|
+
FAST = :fast
|
|
556
565
|
|
|
557
566
|
# @!method self.values
|
|
558
567
|
# @return [Array<Symbol>]
|
|
@@ -52,9 +52,13 @@ module OpenAI
|
|
|
52
52
|
# will use 'default'.
|
|
53
53
|
# - If set to 'default', then the request will be processed with the standard
|
|
54
54
|
# pricing and performance for the selected model.
|
|
55
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
56
|
-
#
|
|
57
|
-
#
|
|
55
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
56
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
57
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
58
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
59
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
60
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
61
|
+
# request.
|
|
58
62
|
# - When not set, the default behavior is 'auto'.
|
|
59
63
|
#
|
|
60
64
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -717,9 +721,13 @@ module OpenAI
|
|
|
717
721
|
# will use 'default'.
|
|
718
722
|
# - If set to 'default', then the request will be processed with the standard
|
|
719
723
|
# pricing and performance for the selected model.
|
|
720
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
721
|
-
#
|
|
722
|
-
#
|
|
724
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
725
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
726
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
727
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
728
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
729
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
730
|
+
# request.
|
|
723
731
|
# - When not set, the default behavior is 'auto'.
|
|
724
732
|
#
|
|
725
733
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -736,6 +744,7 @@ module OpenAI
|
|
|
736
744
|
FLEX = :flex
|
|
737
745
|
SCALE = :scale
|
|
738
746
|
PRIORITY = :priority
|
|
747
|
+
FAST = :fast
|
|
739
748
|
|
|
740
749
|
# @!method self.values
|
|
741
750
|
# @return [Array<Symbol>]
|
|
@@ -293,9 +293,13 @@ module OpenAI
|
|
|
293
293
|
# will use 'default'.
|
|
294
294
|
# - If set to 'default', then the request will be processed with the standard
|
|
295
295
|
# pricing and performance for the selected model.
|
|
296
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
297
|
-
#
|
|
298
|
-
#
|
|
296
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
297
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
298
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
299
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
300
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
301
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
302
|
+
# request.
|
|
299
303
|
# - When not set, the default behavior is 'auto'.
|
|
300
304
|
#
|
|
301
305
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -853,9 +857,13 @@ module OpenAI
|
|
|
853
857
|
# will use 'default'.
|
|
854
858
|
# - If set to 'default', then the request will be processed with the standard
|
|
855
859
|
# pricing and performance for the selected model.
|
|
856
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
857
|
-
#
|
|
858
|
-
#
|
|
860
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
861
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
862
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
863
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
864
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
865
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
866
|
+
# request.
|
|
859
867
|
# - When not set, the default behavior is 'auto'.
|
|
860
868
|
#
|
|
861
869
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -870,6 +878,7 @@ module OpenAI
|
|
|
870
878
|
FLEX = :flex
|
|
871
879
|
SCALE = :scale
|
|
872
880
|
PRIORITY = :priority
|
|
881
|
+
FAST = :fast
|
|
873
882
|
|
|
874
883
|
# @!method self.values
|
|
875
884
|
# @return [Array<Symbol>]
|
|
@@ -267,9 +267,13 @@ module OpenAI
|
|
|
267
267
|
# will use 'default'.
|
|
268
268
|
# - If set to 'default', then the request will be processed with the standard
|
|
269
269
|
# pricing and performance for the selected model.
|
|
270
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
271
|
-
#
|
|
272
|
-
#
|
|
270
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
271
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
272
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
273
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
274
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
275
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
276
|
+
# request.
|
|
273
277
|
# - When not set, the default behavior is 'auto'.
|
|
274
278
|
#
|
|
275
279
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -904,9 +908,13 @@ module OpenAI
|
|
|
904
908
|
# will use 'default'.
|
|
905
909
|
# - If set to 'default', then the request will be processed with the standard
|
|
906
910
|
# pricing and performance for the selected model.
|
|
907
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
908
|
-
#
|
|
909
|
-
#
|
|
911
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
912
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
913
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
914
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
915
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
916
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
917
|
+
# request.
|
|
910
918
|
# - When not set, the default behavior is 'auto'.
|
|
911
919
|
#
|
|
912
920
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -923,6 +931,7 @@ module OpenAI
|
|
|
923
931
|
FLEX = :flex
|
|
924
932
|
SCALE = :scale
|
|
925
933
|
PRIORITY = :priority
|
|
934
|
+
FAST = :fast
|
|
926
935
|
|
|
927
936
|
# @!method self.values
|
|
928
937
|
# @return [Array<Symbol>]
|
|
@@ -231,9 +231,13 @@ module OpenAI
|
|
|
231
231
|
# will use 'default'.
|
|
232
232
|
# - If set to 'default', then the request will be processed with the standard
|
|
233
233
|
# pricing and performance for the selected model.
|
|
234
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
235
|
-
#
|
|
236
|
-
#
|
|
234
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
235
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
236
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
237
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
238
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
239
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
240
|
+
# request.
|
|
237
241
|
# - When not set, the default behavior is 'auto'.
|
|
238
242
|
#
|
|
239
243
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -694,9 +698,13 @@ module OpenAI
|
|
|
694
698
|
# will use 'default'.
|
|
695
699
|
# - If set to 'default', then the request will be processed with the standard
|
|
696
700
|
# pricing and performance for the selected model.
|
|
697
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
698
|
-
#
|
|
699
|
-
#
|
|
701
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
702
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
703
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
704
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
705
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
706
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
707
|
+
# request.
|
|
700
708
|
# - When not set, the default behavior is 'auto'.
|
|
701
709
|
#
|
|
702
710
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -711,6 +719,7 @@ module OpenAI
|
|
|
711
719
|
FLEX = :flex
|
|
712
720
|
SCALE = :scale
|
|
713
721
|
PRIORITY = :priority
|
|
722
|
+
FAST = :fast
|
|
714
723
|
|
|
715
724
|
# @!method self.values
|
|
716
725
|
# @return [Array<Symbol>]
|
|
@@ -231,9 +231,13 @@ module OpenAI
|
|
|
231
231
|
# will use 'default'.
|
|
232
232
|
# - If set to 'default', then the request will be processed with the standard
|
|
233
233
|
# pricing and performance for the selected model.
|
|
234
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
235
|
-
#
|
|
236
|
-
#
|
|
234
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
235
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
236
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
237
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
238
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
239
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
240
|
+
# request.
|
|
237
241
|
# - When not set, the default behavior is 'auto'.
|
|
238
242
|
#
|
|
239
243
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -709,9 +713,13 @@ module OpenAI
|
|
|
709
713
|
# will use 'default'.
|
|
710
714
|
# - If set to 'default', then the request will be processed with the standard
|
|
711
715
|
# pricing and performance for the selected model.
|
|
712
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
713
|
-
#
|
|
714
|
-
#
|
|
716
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
717
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
718
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
719
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
720
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
721
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
722
|
+
# request.
|
|
715
723
|
# - When not set, the default behavior is 'auto'.
|
|
716
724
|
#
|
|
717
725
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -728,6 +736,7 @@ module OpenAI
|
|
|
728
736
|
FLEX = :flex
|
|
729
737
|
SCALE = :scale
|
|
730
738
|
PRIORITY = :priority
|
|
739
|
+
FAST = :fast
|
|
731
740
|
|
|
732
741
|
# @!method self.values
|
|
733
742
|
# @return [Array<Symbol>]
|
data/lib/openai/version.rb
CHANGED
|
@@ -277,9 +277,13 @@ module OpenAI
|
|
|
277
277
|
# will use 'default'.
|
|
278
278
|
# - If set to 'default', then the request will be processed with the standard
|
|
279
279
|
# pricing and performance for the selected model.
|
|
280
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
281
|
-
#
|
|
282
|
-
#
|
|
280
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
281
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
282
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
283
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
284
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
285
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
286
|
+
# request.
|
|
283
287
|
# - When not set, the default behavior is 'auto'.
|
|
284
288
|
#
|
|
285
289
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -613,9 +617,13 @@ module OpenAI
|
|
|
613
617
|
# will use 'default'.
|
|
614
618
|
# - If set to 'default', then the request will be processed with the standard
|
|
615
619
|
# pricing and performance for the selected model.
|
|
616
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
617
|
-
#
|
|
618
|
-
#
|
|
620
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
621
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
622
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
623
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
624
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
625
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
626
|
+
# request.
|
|
619
627
|
# - When not set, the default behavior is 'auto'.
|
|
620
628
|
#
|
|
621
629
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -2416,9 +2424,13 @@ module OpenAI
|
|
|
2416
2424
|
# will use 'default'.
|
|
2417
2425
|
# - If set to 'default', then the request will be processed with the standard
|
|
2418
2426
|
# pricing and performance for the selected model.
|
|
2419
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
2420
|
-
#
|
|
2421
|
-
#
|
|
2427
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
2428
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
2429
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
2430
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
2431
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
2432
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
2433
|
+
# request.
|
|
2422
2434
|
# - When not set, the default behavior is 'auto'.
|
|
2423
2435
|
#
|
|
2424
2436
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -2450,6 +2462,8 @@ module OpenAI
|
|
|
2450
2462
|
:priority,
|
|
2451
2463
|
OpenAI::Beta::BetaResponse::ServiceTier::TaggedSymbol
|
|
2452
2464
|
)
|
|
2465
|
+
FAST =
|
|
2466
|
+
T.let(:fast, OpenAI::Beta::BetaResponse::ServiceTier::TaggedSymbol)
|
|
2453
2467
|
|
|
2454
2468
|
sig do
|
|
2455
2469
|
override.returns(
|
|
@@ -331,9 +331,13 @@ module OpenAI
|
|
|
331
331
|
# will use 'default'.
|
|
332
332
|
# - If set to 'default', then the request will be processed with the standard
|
|
333
333
|
# pricing and performance for the selected model.
|
|
334
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
335
|
-
#
|
|
336
|
-
#
|
|
334
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
335
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
336
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
337
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
338
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
339
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
340
|
+
# request.
|
|
337
341
|
# - When not set, the default behavior is 'auto'.
|
|
338
342
|
#
|
|
339
343
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -806,9 +810,13 @@ module OpenAI
|
|
|
806
810
|
# will use 'default'.
|
|
807
811
|
# - If set to 'default', then the request will be processed with the standard
|
|
808
812
|
# pricing and performance for the selected model.
|
|
809
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
810
|
-
#
|
|
811
|
-
#
|
|
813
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
814
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
815
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
816
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
817
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
818
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
819
|
+
# request.
|
|
812
820
|
# - When not set, the default behavior is 'auto'.
|
|
813
821
|
#
|
|
814
822
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -2623,9 +2631,13 @@ module OpenAI
|
|
|
2623
2631
|
# will use 'default'.
|
|
2624
2632
|
# - If set to 'default', then the request will be processed with the standard
|
|
2625
2633
|
# pricing and performance for the selected model.
|
|
2626
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
2627
|
-
#
|
|
2628
|
-
#
|
|
2634
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
2635
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
2636
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
2637
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
2638
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
2639
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
2640
|
+
# request.
|
|
2629
2641
|
# - When not set, the default behavior is 'auto'.
|
|
2630
2642
|
#
|
|
2631
2643
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -2669,6 +2681,11 @@ module OpenAI
|
|
|
2669
2681
|
:priority,
|
|
2670
2682
|
OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::ServiceTier::TaggedSymbol
|
|
2671
2683
|
)
|
|
2684
|
+
FAST =
|
|
2685
|
+
T.let(
|
|
2686
|
+
:fast,
|
|
2687
|
+
OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::ServiceTier::TaggedSymbol
|
|
2688
|
+
)
|
|
2672
2689
|
|
|
2673
2690
|
sig do
|
|
2674
2691
|
override.returns(
|
|
@@ -280,9 +280,13 @@ module OpenAI
|
|
|
280
280
|
# will use 'default'.
|
|
281
281
|
# - If set to 'default', then the request will be processed with the standard
|
|
282
282
|
# pricing and performance for the selected model.
|
|
283
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
284
|
-
#
|
|
285
|
-
#
|
|
283
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
284
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
285
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
286
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
287
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
288
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
289
|
+
# request.
|
|
286
290
|
# - When not set, the default behavior is 'auto'.
|
|
287
291
|
#
|
|
288
292
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -738,9 +742,13 @@ module OpenAI
|
|
|
738
742
|
# will use 'default'.
|
|
739
743
|
# - If set to 'default', then the request will be processed with the standard
|
|
740
744
|
# pricing and performance for the selected model.
|
|
741
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
742
|
-
#
|
|
743
|
-
#
|
|
745
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
746
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
747
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
748
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
749
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
750
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
751
|
+
# request.
|
|
744
752
|
# - When not set, the default behavior is 'auto'.
|
|
745
753
|
#
|
|
746
754
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -2524,9 +2532,13 @@ module OpenAI
|
|
|
2524
2532
|
# will use 'default'.
|
|
2525
2533
|
# - If set to 'default', then the request will be processed with the standard
|
|
2526
2534
|
# pricing and performance for the selected model.
|
|
2527
|
-
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)'
|
|
2528
|
-
#
|
|
2529
|
-
#
|
|
2535
|
+
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
2536
|
+
# then the request will be processed with the Flex Processing service tier.
|
|
2537
|
+
# - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
2538
|
+
# include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
2539
|
+
# Responses or Chat Completions. The response will show `service_tier=priority`
|
|
2540
|
+
# regardless of if you specify `service_tier=fast` or `priority` in your
|
|
2541
|
+
# request.
|
|
2530
2542
|
# - When not set, the default behavior is 'auto'.
|
|
2531
2543
|
#
|
|
2532
2544
|
# When the `service_tier` parameter is set, the response body will include the
|
|
@@ -2567,6 +2579,11 @@ module OpenAI
|
|
|
2567
2579
|
:priority,
|
|
2568
2580
|
OpenAI::Beta::ResponseCreateParams::ServiceTier::TaggedSymbol
|
|
2569
2581
|
)
|
|
2582
|
+
FAST =
|
|
2583
|
+
T.let(
|
|
2584
|
+
:fast,
|
|
2585
|
+
OpenAI::Beta::ResponseCreateParams::ServiceTier::TaggedSymbol
|
|
2586
|
+
)
|
|
2570
2587
|
|
|
2571
2588
|
sig do
|
|
2572
2589
|
override.returns(
|