Class ChatCompletionRequestMessageContentPartImageImageUrl
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ChatCompletionRequestMessageContentPartImageImageUrl
ChatCompletionRequestMessageContentPartImageImageUrl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSpecifies the detail level of the image. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the detail of thisChatCompletionRequestMessageContentPartImageImageUrlinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theChatCompletionRequestMessageContentPartImageImageUrl.Specifies the detail level of the image.getUrl()Either a URL of the image or the base64 encoded image data.inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisChatCompletionRequestMessageContentPartImageImageUrlinstance.voidSet the detail of thisChatCompletionRequestMessageContentPartImageImageUrlinstance.voidSet the url of thisChatCompletionRequestMessageContentPartImageImageUrlinstance.toMap()Get the value of all properties of thisChatCompletionRequestMessageContentPartImageImageUrlinstance including unrecognized properties.toString()Set the url of thisChatCompletionRequestMessageContentPartImageImageUrlinstance and return the same instance.
-
Constructor Details
-
ChatCompletionRequestMessageContentPartImageImageUrl
public ChatCompletionRequestMessageContentPartImageImageUrl()
-
-
Method Details
-
url
Set the url of thisChatCompletionRequestMessageContentPartImageImageUrlinstance and return the same instance.- Parameters:
url- Either a URL of the image or the base64 encoded image data.- Returns:
- The same instance of this
ChatCompletionRequestMessageContentPartImageImageUrlclass
-
getUrl
Either a URL of the image or the base64 encoded image data.- Returns:
- url The url of this
ChatCompletionRequestMessageContentPartImageImageUrlinstance.
-
setUrl
Set the url of thisChatCompletionRequestMessageContentPartImageImageUrlinstance.- Parameters:
url- Either a URL of the image or the base64 encoded image data.
-
detail
@Nonnull public ChatCompletionRequestMessageContentPartImageImageUrl detail(@Nullable ChatCompletionRequestMessageContentPartImageImageUrl.DetailEnum detail) Set the detail of thisChatCompletionRequestMessageContentPartImageImageUrlinstance and return the same instance.- Parameters:
detail- Specifies the detail level of the image. Learn more in the [Vision guide](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/gpt-with-vision?tabs=rest%2Csystem-assigned%2Cresource#detail-parameter-settings-in-image-processing-low-high-auto).- Returns:
- The same instance of this
ChatCompletionRequestMessageContentPartImageImageUrlclass
-
getDetail
Specifies the detail level of the image. Learn more in the [Vision guide](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/gpt-with-vision?tabs=rest%2Csystem-assigned%2Cresource#detail-parameter-settings-in-image-processing-low-high-auto).- Returns:
- detail The detail of this
ChatCompletionRequestMessageContentPartImageImageUrlinstance.
-
setDetail
public void setDetail(@Nullable ChatCompletionRequestMessageContentPartImageImageUrl.DetailEnum detail) Set the detail of thisChatCompletionRequestMessageContentPartImageImageUrlinstance.- Parameters:
detail- Specifies the detail level of the image. Learn more in the [Vision guide](https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/gpt-with-vision?tabs=rest%2Csystem-assigned%2Cresource#detail-parameter-settings-in-image-processing-low-high-auto).
-
getCustomFieldNames
Get the names of the unrecognizable properties of theChatCompletionRequestMessageContentPartImageImageUrl.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisChatCompletionRequestMessageContentPartImageImageUrlinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisChatCompletionRequestMessageContentPartImageImageUrlinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisChatCompletionRequestMessageContentPartImageImageUrlinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
toMap()instead.