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.
|
ChatStdResponse |
ChatStd(ChatStdRequest req)
腾讯混元大模型标准版是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
1.
|
GetEmbeddingResponse |
GetEmbedding(GetEmbeddingRequest req)
腾讯混元-Embedding接口,可以将文本转化为高质量的向量数据。
|
GetTokenCountResponse |
GetTokenCount(GetTokenCountRequest req)
该接口用于计算文本对应Token数、字符数。
|
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, internalRequest, internalRequestRaw, processResponseJson, processResponseSSE, retry, setClientProfile, setCredential, setRegion, setRegionBreakerpublic HunyuanClient(Credential credential, String region)
public HunyuanClient(Credential credential, String region, ClientProfile profile)
public ChatProResponse ChatPro(ChatProRequest req) throws TencentCloudSDKException
req - ChatProRequestTencentCloudSDKExceptionpublic ChatStdResponse ChatStd(ChatStdRequest req) throws TencentCloudSDKException
req - ChatStdRequestTencentCloudSDKExceptionpublic GetEmbeddingResponse GetEmbedding(GetEmbeddingRequest req) throws TencentCloudSDKException
req - GetEmbeddingRequestTencentCloudSDKExceptionpublic GetTokenCountResponse GetTokenCount(GetTokenCountRequest req) throws TencentCloudSDKException
req - GetTokenCountRequestTencentCloudSDKExceptionCopyright © 2024. All rights reserved.