tencentcloud-sdk-nodejs-tione 4.1.293 → 4.1.299
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1946,24 +1946,27 @@ export interface ModifyModelServiceRequest {
|
|
|
1946
1946
|
*/
|
|
1947
1947
|
export interface ChatCompletionRequest {
|
|
1948
1948
|
/**
|
|
1949
|
-
*
|
|
1950
|
-
自行部署的开源大模型聊天:部署的模型服务组ID,形如ms-q7pfr29p。
|
|
1949
|
+
* <p>对话的目标模型ID。<br>自行部署的开源大模型聊天:部署的模型服务组ID,形如ms-q7pfr29p。</p>
|
|
1951
1950
|
*/
|
|
1952
1951
|
Model: string;
|
|
1953
1952
|
/**
|
|
1954
|
-
*
|
|
1953
|
+
* <p>输入对话历史。旧的对话在前,数组中最后一项应该为这次的问题。</p>
|
|
1955
1954
|
*/
|
|
1956
1955
|
Messages: Array<Message>;
|
|
1957
1956
|
/**
|
|
1958
|
-
*
|
|
1957
|
+
* <p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
1958
|
+
*/
|
|
1959
|
+
TiProjectId?: string;
|
|
1960
|
+
/**
|
|
1961
|
+
* <p>仅当模型为自行部署的开源大模型时生效。采样随机值,默认值为0.7,取值范围[0,2]。较高的值(如0.8)将使输出更加随机,而较低的值(如0.2)将使输出更加确定。建议仅修改此参数或TopP,但不建议两者都修改。</p>
|
|
1959
1962
|
*/
|
|
1960
1963
|
Temperature?: number;
|
|
1961
1964
|
/**
|
|
1962
|
-
*
|
|
1965
|
+
* <p>仅当模型为自行部署的开源大模型时生效。核采样,默认值为1,取值范围[0,1]。指的是预先设置一个概率界限 p,然后将所有可能生成的token,根据概率大小从高到低排列,依次选取。当这些选取的token的累积概率大于或等于 p 值时停止,然后从已经选取的token中进行采样,生成下一个token。例如top_p为0.1时意味着模型只考虑累积概率为10%的token。建议仅修改此参数或Temperature,不建议两者都修改。</p>
|
|
1963
1966
|
*/
|
|
1964
1967
|
TopP?: number;
|
|
1965
1968
|
/**
|
|
1966
|
-
*
|
|
1969
|
+
* <p>仅当模型为自行部署的开源大模型时生效。默认 512,模型可生成内容的最长 token 数量,最大不能超过模型支持的上下文长度。</p>
|
|
1967
1970
|
*/
|
|
1968
1971
|
MaxTokens?: number;
|
|
1969
1972
|
}
|
|
@@ -3123,15 +3126,19 @@ export interface AuthTokenBase {
|
|
|
3123
3126
|
*/
|
|
3124
3127
|
export interface ModifyModelServiceAuthTokenRequest {
|
|
3125
3128
|
/**
|
|
3126
|
-
*
|
|
3129
|
+
* <p>服务组 id</p>
|
|
3127
3130
|
*/
|
|
3128
3131
|
ServiceGroupId: string;
|
|
3129
3132
|
/**
|
|
3130
|
-
*
|
|
3133
|
+
* <p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
3134
|
+
*/
|
|
3135
|
+
TiProjectId?: string;
|
|
3136
|
+
/**
|
|
3137
|
+
* <p>是否需要重置,如果为 true,重置 token 值</p>
|
|
3131
3138
|
*/
|
|
3132
3139
|
NeedReset?: boolean;
|
|
3133
3140
|
/**
|
|
3134
|
-
* AuthToken
|
|
3141
|
+
* <p>AuthToken 数据</p>
|
|
3135
3142
|
*/
|
|
3136
3143
|
AuthToken?: AuthToken;
|
|
3137
3144
|
}
|
|
@@ -4511,11 +4518,15 @@ export interface DeleteModelServiceRequest {
|
|
|
4511
4518
|
*/
|
|
4512
4519
|
export interface DeleteModelServiceAuthTokenRequest {
|
|
4513
4520
|
/**
|
|
4514
|
-
*
|
|
4521
|
+
* <p>服务组 id</p>
|
|
4515
4522
|
*/
|
|
4516
4523
|
ServiceGroupId: string;
|
|
4517
4524
|
/**
|
|
4518
|
-
*
|
|
4525
|
+
* <p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
4526
|
+
*/
|
|
4527
|
+
TiProjectId?: string;
|
|
4528
|
+
/**
|
|
4529
|
+
* <p>token 值</p>
|
|
4519
4530
|
*/
|
|
4520
4531
|
AuthTokenValue?: string;
|
|
4521
4532
|
}
|
|
@@ -7428,15 +7439,19 @@ export interface TrainingModelVersionDTO {
|
|
|
7428
7439
|
*/
|
|
7429
7440
|
export interface CreateModelServiceAuthTokenRequest {
|
|
7430
7441
|
/**
|
|
7431
|
-
*
|
|
7442
|
+
* <p>服务组 id</p>
|
|
7432
7443
|
*/
|
|
7433
7444
|
ServiceGroupId: string;
|
|
7434
7445
|
/**
|
|
7435
|
-
*
|
|
7446
|
+
* <p>TI工作空间ID</p><p>仅用于“工作空间”白名单功能。如需使用,请联系TI管理员开通白名单。</p>
|
|
7447
|
+
*/
|
|
7448
|
+
TiProjectId?: string;
|
|
7449
|
+
/**
|
|
7450
|
+
* <p>token 名称</p>
|
|
7436
7451
|
*/
|
|
7437
7452
|
Name?: string;
|
|
7438
7453
|
/**
|
|
7439
|
-
* Description
|
|
7454
|
+
* <p>Description 描述</p>
|
|
7440
7455
|
*/
|
|
7441
7456
|
Description?: string;
|
|
7442
7457
|
}
|
|
@@ -7654,19 +7669,19 @@ export interface DescribeSubAccountLinuxUserInfosRequest {
|
|
|
7654
7669
|
*/
|
|
7655
7670
|
export interface ChatCompletionResponse {
|
|
7656
7671
|
/**
|
|
7657
|
-
*
|
|
7672
|
+
* <p>对话的模型服务组ID</p>
|
|
7658
7673
|
*/
|
|
7659
7674
|
Model?: string;
|
|
7660
7675
|
/**
|
|
7661
|
-
*
|
|
7676
|
+
* <p>本次问答的答案。</p>
|
|
7662
7677
|
*/
|
|
7663
7678
|
Choices?: Array<Choice>;
|
|
7664
7679
|
/**
|
|
7665
|
-
*
|
|
7680
|
+
* <p>会话Id。</p>
|
|
7666
7681
|
*/
|
|
7667
7682
|
Id?: string;
|
|
7668
7683
|
/**
|
|
7669
|
-
* token
|
|
7684
|
+
* <p>token统计</p>
|
|
7670
7685
|
*/
|
|
7671
7686
|
Usage?: Usage;
|
|
7672
7687
|
/**
|