@wix/auto_sdk_ai-gateway_generators 1.0.126 → 1.0.127

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.
@@ -300,6 +300,14 @@ interface OpenaiproxyV1CreateChatCompletionRequest extends OpenaiproxyV1CreateCh
300
300
  * @maxLength 100
301
301
  */
302
302
  verbosity?: string | null;
303
+ /**
304
+ * Specifies the processing tier used for serving the request. Passed through to OpenAI as "service_tier".
305
+ * "auto" lets the project default decide, "default" uses standard processing, "flex" uses cheaper/slower
306
+ * flex processing, and "priority" uses low-latency priority processing.
307
+ * See https://developers.openai.com/api/docs/guides/priority-processing
308
+ * @maxLength 100
309
+ */
310
+ serviceTier?: string | null;
303
311
  }
304
312
  /** @oneof */
305
313
  interface OpenaiproxyV1CreateChatCompletionRequestFunctionCallOneOf {
@@ -6082,6 +6090,14 @@ interface V1OpenAiResponsesRequest {
6082
6090
  truncation?: string | null;
6083
6091
  /** Whether to store the generated model response for later retrieval via API. */
6084
6092
  store?: boolean | null;
6093
+ /**
6094
+ * Specifies the processing tier used for serving the request. Passed through to OpenAI as "service_tier".
6095
+ * "auto" lets the project default decide, "default" uses standard processing, "flex" uses cheaper/slower
6096
+ * flex processing, and "priority" uses low-latency priority processing.
6097
+ * See https://developers.openai.com/api/docs/guides/priority-processing
6098
+ * @maxLength 100
6099
+ */
6100
+ serviceTier?: string | null;
6085
6101
  }
6086
6102
  declare enum V1ResponsesModel {
6087
6103
  MODEL_UNSPECIFIED = "MODEL_UNSPECIFIED",
@@ -8740,6 +8756,13 @@ interface OpenaiproxyV1CreateChatCompletionResponse {
8740
8756
  * @maxLength 10000
8741
8757
  */
8742
8758
  systemFingerprint?: string | null;
8759
+ /**
8760
+ * The processing tier that OpenAI actually used to serve the request (echoed from OpenAI's "service_tier").
8761
+ * May differ from the requested tier, e.g. "default" when a requested "priority" was downgraded. This is the
8762
+ * tier the cost (microcents_spent) is calculated from.
8763
+ * @maxLength 100
8764
+ */
8765
+ serviceTier?: string | null;
8743
8766
  }
8744
8767
  interface CreateChatCompletionResponsePromptTokenDetails {
8745
8768
  /** Audio input tokens present in the prompt. */
@@ -10190,6 +10213,12 @@ interface V1OpenAiResponsesResponse {
10190
10213
  usage?: V1ResponsesTokenUsage;
10191
10214
  /** Cost of the request in microcents. */
10192
10215
  microcentsSpent?: string | null;
10216
+ /**
10217
+ * The processing tier that OpenAI actually used to serve the request (echoed from OpenAI's "service_tier").
10218
+ * May differ from the requested tier when OpenAI downgrades. This is the tier microcents_spent is based on.
10219
+ * @maxLength 100
10220
+ */
10221
+ serviceTier?: string | null;
10193
10222
  }
10194
10223
  interface OpenAiResponsesResponseIncompleteDetails {
10195
10224
  /**
@@ -11061,6 +11090,11 @@ interface OpenaiproxyV1ChatCompletionChunk {
11061
11090
  usage?: OpenaiproxyV1CreateChatCompletionResponseTokenUsage;
11062
11091
  /** Cost of the entire request in micro cents. Calculated manually and is present only in the last chunk. */
11063
11092
  microcentsSpent?: string | null;
11093
+ /**
11094
+ * The processing tier that OpenAI actually used to serve the request (echoed from OpenAI's "service_tier").
11095
+ * @maxLength 100
11096
+ */
11097
+ serviceTier?: string | null;
11064
11098
  }
11065
11099
  interface ChatCompletionChunkChunkChoiceChunkDelta {
11066
11100
  /**
@@ -14396,6 +14430,11 @@ interface PollImageGenerationResultResponse extends PollImageGenerationResultRes
14396
14430
  bytedanceGetContentTaskResponse?: GetContentTaskResponse;
14397
14431
  /** Fal schemaless proxy GetQueueResult response */
14398
14432
  falGetQueueResultResponse?: FalGetQueueResultResponse;
14433
+ /**
14434
+ * Extracted cost of the polled request in microcents. Absent until the vendor has finished
14435
+ * processing and priced the result.
14436
+ */
14437
+ cost?: string | null;
14399
14438
  }
14400
14439
  /** @oneof */
14401
14440
  interface PollImageGenerationResultResponseResponseOneOf {