public class GroupChatCompletionsRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| GroupChatCompletionsRequest() | 
| GroupChatCompletionsRequest(GroupChatCompletionsRequest 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 | 
|---|---|
| GroupChatConfig | getGroupChatConfig()Get 角色描述 | 
| GroupMessage[] | getMessages()Get 聊天上下文信息。 | 
| String | getModel()Get 模型名称,可选值包括 hunyuan-large-role-group。各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。注意:不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。 | 
| String | getSessionId()Get 对话接口 | 
| Boolean | getStream()Get 流式调用开关。
说明:
1. | 
| String | getTargetCharacterName()Get 目标人物名称 | 
| String | getUserId()Get 用户ID | 
| void | setGroupChatConfig(GroupChatConfig GroupChatConfig)Set 角色描述 | 
| void | setMessages(GroupMessage[] Messages)Set 聊天上下文信息。 | 
| void | setModel(String Model)Set 模型名称,可选值包括 hunyuan-large-role-group。各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。注意:不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。 | 
| void | setSessionId(String SessionId)Set 对话接口 | 
| void | setStream(Boolean Stream)Set 流式调用开关。
说明:
1. | 
| void | setTargetCharacterName(String TargetCharacterName)Set 目标人物名称 | 
| void | setUserId(String UserId)Set 用户ID | 
| 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, toJsonStringpublic GroupChatCompletionsRequest()
public GroupChatCompletionsRequest(GroupChatCompletionsRequest source)
public String getModel()
public void setModel(String Model)
Model - 模型名称,可选值包括 hunyuan-large-role-group。各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。注意:不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。public GroupMessage[] getMessages()
public void setMessages(GroupMessage[] Messages)
Messages - 聊天上下文信息。public Boolean getStream()
public void setStream(Boolean Stream)
Stream - 流式调用开关。
说明:
1. 未传值时默认为非流式调用(false)。
2. 流式调用时以 SSE 协议增量返回结果(返回值取 Choices[n].Delta 中的值,需要拼接增量数据才能获得完整结果)。
3. 非流式调用时:
调用方式与普通 HTTP 请求无异。
接口响应耗时较长,**如需更低时延建议设置为 true**。
只返回一次最终结果(返回值取 Choices[n].Message 中的值)。
注意:
通过 SDK 调用时,流式和非流式调用需用**不同的方式**获取返回值,具体参考 SDK 中的注释或示例(在各语言 SDK 代码仓库的 examples/hunyuan/v20230901/ 目录中)。public String getTargetCharacterName()
public void setTargetCharacterName(String TargetCharacterName)
TargetCharacterName - 目标人物名称public GroupChatConfig getGroupChatConfig()
public void setGroupChatConfig(GroupChatConfig GroupChatConfig)
GroupChatConfig - 角色描述public String getUserId()
public void setUserId(String UserId)
UserId - 用户IDpublic String getSessionId()
public void setSessionId(String SessionId)
SessionId - 对话接口Copyright © 2025. All rights reserved.