Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ImageUrl |
build() |
ImageUrl.Builder |
copy(ImageUrl model) |
ImageUrl.Builder |
detail(ImageUrl.Detail detail)
The default value is AUTO and only AUTO is supported.
|
ImageUrl.Builder |
url(String url)
The base64 encoded image data.
|
public ImageUrl.Builder url(String url)
The base64 encoded image data.
Example for a png image: { "type": "IMAGE", "imageUrl": { "url":
"data:image/png;base64,<base64 encoded image content>" } }
url
- the value to setpublic ImageUrl.Builder detail(ImageUrl.Detail detail)
The default value is AUTO and only AUTO is supported. This option controls how to convert the base64 encoded image to tokens.
detail
- the value to setpublic ImageUrl build()
public ImageUrl.Builder copy(ImageUrl model)
Copyright © 2016–2025. All rights reserved.