| Package | Description |
|---|---|
| com.tencentcloudapi.hunyuan.v20230901.models |
| Modifier and Type | Method and Description |
|---|---|
ImageUrl |
Content.getImageUrl()
Get 图片的url,当 Type 为 image_url 时使用,表示具体的图片内容
如"https://example.com/1.png" 或 图片的base64(注意 "data:image/jpeg;base64," 为必要部分):"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA......"。当 Type 为 text 时,当前字段内容需保持为空,传递内容不生效。
注意:此字段可能返回 null,表示取不到有效值。
|
| Modifier and Type | Method and Description |
|---|---|
void |
Content.setImageUrl(ImageUrl ImageUrl)
Set 图片的url,当 Type 为 image_url 时使用,表示具体的图片内容
如"https://example.com/1.png" 或 图片的base64(注意 "data:image/jpeg;base64," 为必要部分):"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA......"。当 Type 为 text 时,当前字段内容需保持为空,传递内容不生效。
注意:此字段可能返回 null,表示取不到有效值。
|
| Constructor and Description |
|---|
ImageUrl(ImageUrl source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Copyright © 2025. All rights reserved.