public class ImageMessage extends AbstractModel
header, skipSign
Constructor and Description |
---|
ImageMessage() |
ImageMessage(ImageMessage 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getContent()
Get 文本内容
|
Content[] |
getContents()
Get 多种类型内容(目前支持图片和文本),仅 hunyuan-vision 和 hunyuan-turbo-vision 模型支持
|
String |
getRole()
Get 角色,可选值包括 system、user、assistant。
|
void |
setContent(String Content)
Set 文本内容
|
void |
setContents(Content[] Contents)
Set 多种类型内容(目前支持图片和文本),仅 hunyuan-vision 和 hunyuan-turbo-vision 模型支持
|
void |
setRole(String Role)
Set 角色,可选值包括 system、user、assistant。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ImageMessage()
public ImageMessage(ImageMessage source)
public String getRole()
public void setRole(String Role)
Role
- 角色,可选值包括 system、user、assistant。public String getContent()
public void setContent(String Content)
Content
- 文本内容public Content[] getContents()
public void setContents(Content[] Contents)
Contents
- 多种类型内容(目前支持图片和文本),仅 hunyuan-vision 和 hunyuan-turbo-vision 模型支持Copyright © 2025. All rights reserved.