openai 7.1.0 → 7.2.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.
@@ -1025,9 +1025,13 @@ export interface BetaResponse {
1025
1025
  * will use 'default'.
1026
1026
  * - If set to 'default', then the request will be processed with the standard
1027
1027
  * pricing and performance for the selected model.
1028
- * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
1029
- * '[priority](https://openai.com/api-priority-processing/)', then the request
1030
- * will be processed with the corresponding service tier.
1028
+ * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
1029
+ * then the request will be processed with the Flex Processing service tier.
1030
+ * - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
1031
+ * include the `service_tier=fast` or `service_tier=priority` parameter for
1032
+ * Responses or Chat Completions. The response will show `service_tier=priority`
1033
+ * regardless of if you specify `service_tier=fast` or `priority` in your
1034
+ * request.
1031
1035
  * - When not set, the default behavior is 'auto'.
1032
1036
  *
1033
1037
  * When the `service_tier` parameter is set, the response body will include the
@@ -1035,7 +1039,7 @@ export interface BetaResponse {
1035
1039
  * request. This response value may be different from the value set in the
1036
1040
  * parameter.
1037
1041
  */
1038
- service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null;
1042
+ service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | 'fast' | null;
1039
1043
  /**
1040
1044
  * The status of the response generation. One of `completed`, `failed`,
1041
1045
  * `in_progress`, `cancelled`, `queued`, or `incomplete`.
@@ -8478,9 +8482,13 @@ export declare namespace BetaResponsesClientEvent {
8478
8482
  * will use 'default'.
8479
8483
  * - If set to 'default', then the request will be processed with the standard
8480
8484
  * pricing and performance for the selected model.
8481
- * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
8482
- * '[priority](https://openai.com/api-priority-processing/)', then the request
8483
- * will be processed with the corresponding service tier.
8485
+ * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
8486
+ * then the request will be processed with the Flex Processing service tier.
8487
+ * - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
8488
+ * include the `service_tier=fast` or `service_tier=priority` parameter for
8489
+ * Responses or Chat Completions. The response will show `service_tier=priority`
8490
+ * regardless of if you specify `service_tier=fast` or `priority` in your
8491
+ * request.
8484
8492
  * - When not set, the default behavior is 'auto'.
8485
8493
  *
8486
8494
  * When the `service_tier` parameter is set, the response body will include the
@@ -8488,7 +8496,7 @@ export declare namespace BetaResponsesClientEvent {
8488
8496
  * request. This response value may be different from the value set in the
8489
8497
  * parameter.
8490
8498
  */
8491
- service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null;
8499
+ service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | 'fast' | null;
8492
8500
  /**
8493
8501
  * Whether to store the generated model response for later retrieval via API.
8494
8502
  */
@@ -9519,9 +9527,13 @@ export interface ResponseCreateParamsBase {
9519
9527
  * will use 'default'.
9520
9528
  * - If set to 'default', then the request will be processed with the standard
9521
9529
  * pricing and performance for the selected model.
9522
- * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
9523
- * '[priority](https://openai.com/api-priority-processing/)', then the request
9524
- * will be processed with the corresponding service tier.
9530
+ * - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
9531
+ * then the request will be processed with the Flex Processing service tier.
9532
+ * - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
9533
+ * include the `service_tier=fast` or `service_tier=priority` parameter for
9534
+ * Responses or Chat Completions. The response will show `service_tier=priority`
9535
+ * regardless of if you specify `service_tier=fast` or `priority` in your
9536
+ * request.
9525
9537
  * - When not set, the default behavior is 'auto'.
9526
9538
  *
9527
9539
  * When the `service_tier` parameter is set, the response body will include the
@@ -9529,7 +9541,7 @@ export interface ResponseCreateParamsBase {
9529
9541
  * request. This response value may be different from the value set in the
9530
9542
  * parameter.
9531
9543
  */
9532
- service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | null;
9544
+ service_tier?: 'auto' | 'default' | 'flex' | 'scale' | 'priority' | 'fast' | null;
9533
9545
  /**
9534
9546
  * Body param: Whether to store the generated model response for later retrieval
9535
9547
  * via API.