Package com.azure.ai.openai.models
Class ServiceTierOptions
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ServiceTierOptions>
com.azure.ai.openai.models.ServiceTierOptions
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class ServiceTierOptions
extends com.azure.core.util.ExpandableStringEnum<ServiceTierOptions>
Specifies the latency tier to use for processing the request.
This parameter is relevant for customers subscribed to the scale tier service:
- If set to 'auto', and the Project is Scale tier enabled, the system will utilize scale tier credits until they are exhausted.
- If set to 'auto', and the Project is not Scale tier enabled, the request will be processed using the default service tier with a lower uptime SLA and no latency guaranty.
- If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guaranty.
- When not set, the default behavior is 'auto'.
When this parameter is set, the response body will include the `service_tier` utilized.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ServiceTierOptionsService tier option for auto.static final ServiceTierOptionsService tier option for default. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceTierOptionsfromString(String name) Creates or finds a ServiceTierOptions from its string representation.static Collection<ServiceTierOptions> values()Get known ServiceTierOptions values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
AUTO
Service tier option for auto. -
DEFAULT
Service tier option for default.
-
-
Constructor Details
-
ServiceTierOptions
Deprecated.Use thefromString(String)factory method.Creates a new instance of ServiceTierOptions value.
-
-
Method Details
-
fromString
Creates or finds a ServiceTierOptions from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding ServiceTierOptions.
-
values
Get known ServiceTierOptions values.- Returns:
- a collection of known ServiceTierOptions values.
-
fromString(String)factory method.