Package com.azure.ai.inference.models
Class ExtraParameters
java.lang.Object
com.azure.core.util.ExpandableStringEnum<ExtraParameters>
com.azure.ai.inference.models.ExtraParameters
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class ExtraParameters
extends com.azure.core.util.ExpandableStringEnum<ExtraParameters>
Controls what happens if extra parameters, undefined by the REST API, are passed in the JSON request payload.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExtraParameters
The service will ignore (drop) extra parameters in the request payload.static final ExtraParameters
The service will error if it detected extra parameters in the request payload.static final ExtraParameters
The service will pass extra parameters to the back-end AI model. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtraParameters
fromString
(String name) Creates or finds a ExtraParameters from its string representation.static Collection
<ExtraParameters> values()
Gets known ExtraParameters values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
ERROR
The service will error if it detected extra parameters in the request payload. This is the service default. -
DROP
The service will ignore (drop) extra parameters in the request payload. It will only pass the known parameters to the back-end AI model. -
PASS_THROUGH
The service will pass extra parameters to the back-end AI model.
-
-
Constructor Details
-
ExtraParameters
Deprecated.Use thefromString(String)
factory method.Creates a new instance of ExtraParameters value.
-
-
Method Details
-
fromString
Creates or finds a ExtraParameters from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding ExtraParameters.
-
values
Gets known ExtraParameters values.- Returns:
- known ExtraParameters values.
-
fromString(String)
factory method.