Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ namespace tryAGI.OpenAI
/// Specifies the processing type used for serving the request.<br/>
/// - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.<br/>
/// - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.<br/>
/// - If set to '[flex](/docs/guides/flex-processing)' or '[priority](https://openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier.<br/>
/// - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.<br/>
/// - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level, include the `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat Completions. The response will show `service_tier=priority` regardless of if you specify `service_tier=fast` or `priority` in your request.<br/>
/// - When not set, the default behavior is 'auto'.<br/>
/// When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.<br/>
/// Default Value: auto
Expand All @@ -23,11 +24,15 @@ public enum BetaServiceTierEnum2
/// </summary>
Default,
/// <summary>
/// //openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier.
///
/// </summary>
Fast,
/// <summary>
///
/// </summary>
Flex,
/// <summary>
/// //openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier.
///
/// </summary>
Priority,
/// <summary>
Expand All @@ -50,6 +55,7 @@ public static string ToValueString(this BetaServiceTierEnum2 value)
{
BetaServiceTierEnum2.Auto => "auto",
BetaServiceTierEnum2.Default => "default",
BetaServiceTierEnum2.Fast => "fast",
BetaServiceTierEnum2.Flex => "flex",
BetaServiceTierEnum2.Priority => "priority",
BetaServiceTierEnum2.Scale => "scale",
Expand All @@ -65,6 +71,7 @@ public static string ToValueString(this BetaServiceTierEnum2 value)
{
"auto" => BetaServiceTierEnum2.Auto,
"default" => BetaServiceTierEnum2.Default,
"fast" => BetaServiceTierEnum2.Fast,
"flex" => BetaServiceTierEnum2.Flex,
"priority" => BetaServiceTierEnum2.Priority,
"scale" => BetaServiceTierEnum2.Scale,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ namespace tryAGI.OpenAI
/// Specifies the processing type used for serving the request.<br/>
/// - If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.<br/>
/// - If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.<br/>
/// - If set to '[flex](/docs/guides/flex-processing)' or '[priority](https://openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier.<br/>
/// - If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.<br/>
/// - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level, include the `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat Completions. The response will show `service_tier=priority` regardless of if you specify `service_tier=fast` or `priority` in your request.<br/>
/// - When not set, the default behavior is 'auto'.<br/>
/// When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.<br/>
/// Default Value: auto
Expand All @@ -23,11 +24,15 @@ public enum ServiceTierEnum
/// </summary>
Default,
/// <summary>
/// //openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier.
///
/// </summary>
Fast,
/// <summary>
///
/// </summary>
Flex,
/// <summary>
/// //openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier.
///
/// </summary>
Priority,
/// <summary>
Expand All @@ -50,6 +55,7 @@ public static string ToValueString(this ServiceTierEnum value)
{
ServiceTierEnum.Auto => "auto",
ServiceTierEnum.Default => "default",
ServiceTierEnum.Fast => "fast",
ServiceTierEnum.Flex => "flex",
ServiceTierEnum.Priority => "priority",
ServiceTierEnum.Scale => "scale",
Expand All @@ -65,6 +71,7 @@ public static string ToValueString(this ServiceTierEnum value)
{
"auto" => ServiceTierEnum.Auto,
"default" => ServiceTierEnum.Default,
"fast" => ServiceTierEnum.Fast,
"flex" => ServiceTierEnum.Flex,
"priority" => ServiceTierEnum.Priority,
"scale" => ServiceTierEnum.Scale,
Expand Down
8 changes: 6 additions & 2 deletions src/libs/tryAGI.OpenAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79759,7 +79759,8 @@ components:
Specifies the processing type used for serving the request.
- If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
- If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
- If set to '[flex](/docs/guides/flex-processing)' or '[priority](https://openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier.
- If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.
- To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level, include the `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat Completions. The response will show `service_tier=priority` regardless of if you specify `service_tier=fast` or `priority` in your request.
- When not set, the default behavior is 'auto'.

When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
Expand All @@ -79769,6 +79770,7 @@ components:
- flex
- scale
- priority
- fast
default: auto
- type: 'null'
SpeechAudioDeltaEvent:
Expand Down Expand Up @@ -98286,7 +98288,8 @@ components:
Specifies the processing type used for serving the request.
- If set to 'auto', then the request will be processed with the service tier configured in the Project settings. Unless otherwise configured, the Project will use 'default'.
- If set to 'default', then the request will be processed with the standard pricing and performance for the selected model.
- If set to '[flex](/docs/guides/flex-processing)' or '[priority](https://openai.com/api-priority-processing/)', then the request will be processed with the corresponding service tier.
- If set to '[flex](/docs/guides/flex-processing)', then the request will be processed with the Flex Processing service tier.
- To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level, include the `service_tier=fast` or `service_tier=priority` parameter for Responses or Chat Completions. The response will show `service_tier=priority` regardless of if you specify `service_tier=fast` or `priority` in your request.
- When not set, the default behavior is 'auto'.

When the `service_tier` parameter is set, the response body will include the `service_tier` value based on the processing mode actually used to serve the request. This response value may be different from the value set in the parameter.
Expand All @@ -98296,6 +98299,7 @@ components:
- flex
- scale
- priority
- fast
default: auto
- type: 'null'
BetaMetadata:
Expand Down