public class HunyuanClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
Constructor and Description |
---|
HunyuanClient(Credential credential,
String region) |
HunyuanClient(Credential credential,
String region,
ClientProfile profile) |
Modifier and Type | Method and Description |
---|---|
ChatProResponse |
ChatPro(ChatProRequest req)
腾讯混元大模型高级版是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口为SSE协议。
1.本接口暂不支持返回图片内容。
2.默认单账号限制并发数为5路,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
ChatStdResponse |
ChatStd(ChatStdRequest req)
腾讯混元大模型标准版是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口为SSE协议。
1.本接口暂不支持返回图片内容。
2.默认单账号限制并发数为5路,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。
|
GetTokenCountResponse |
GetTokenCount(GetTokenCountRequest req)
该接口用于计算文本对应Token数、字符数。
|
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, internalRequest, internalRequestRaw, processResponseJson, processResponseSSE, retry, setClientProfile, setCredential, setRegion, setRegionBreaker
public HunyuanClient(Credential credential, String region)
public HunyuanClient(Credential credential, String region, ClientProfile profile)
public ChatProResponse ChatPro(ChatProRequest req) throws TencentCloudSDKException
req
- ChatProRequestTencentCloudSDKException
public ChatStdResponse ChatStd(ChatStdRequest req) throws TencentCloudSDKException
req
- ChatStdRequestTencentCloudSDKException
public GetTokenCountResponse GetTokenCount(GetTokenCountRequest req) throws TencentCloudSDKException
req
- GetTokenCountRequestTencentCloudSDKException
Copyright © 2023. All rights reserved.