tencentcloud-sdk-nodejs-clb 4.1.328 → 4.1.330

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-clb",
3
- "version": "4.1.328",
3
+ "version": "4.1.330",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -168,7 +168,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
168
168
  */
169
169
  ModifyServiceProviderModelAttributes(req: ModifyServiceProviderModelAttributesRequest, cb?: (error: string, rep: ModifyServiceProviderModelAttributesResponse) => void): Promise<ModifyServiceProviderModelAttributesResponse>;
170
170
  /**
171
- * 在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs 查询创建进度。
171
+ * 在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs 查询创建进度。支持建组时绑定 Prompt:传入 PromptId 与 PromptVersion 后,组内 Key 的请求将按该版本 Prompt 的 Content 与 RewriteStrategy 注入或改写 system 内容,并受该版本 MaxTokens 约束;不传则默认不绑定 Prompt,建组后可通过 ModifyUserGroupPrompt 绑定、更换版本或解绑。仅传入 PromptId 或 PromptVersion 其一时返回 InvalidParameter;PromptId 不存在时返回 ResourceNotFound.Prompt;PromptVersion 不存在于该 Prompt 的历史版本中时返回 ResourceNotFound.PromptVersion。
172
172
  */
173
173
  CreateUserGroup(req: CreateUserGroupRequest, cb?: (error: string, rep: CreateUserGroupResponse) => void): Promise<CreateUserGroupResponse>;
174
174
  /**
@@ -264,7 +264,7 @@ class Client extends TencentCloudCommon.AbstractClient {
264
264
  return this.request("ModifyServiceProviderModelAttributes", req, cb);
265
265
  }
266
266
  /**
267
- * 在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs 查询创建进度。
267
+ * 在指定模型路由实例下创建一个用户组。用户组是介于模型路由实例与 Key 之间的一层可选分组,可为组内 Key 统一配置模型白名单,并通过关联 Budget 统一管理额度。创建为异步操作,接口会同步返回用户组ID,可凭返回的 RequestId 调用 DescribeAsyncJobs 查询创建进度。支持建组时绑定 Prompt:传入 PromptId 与 PromptVersion 后,组内 Key 的请求将按该版本 Prompt 的 Content 与 RewriteStrategy 注入或改写 system 内容,并受该版本 MaxTokens 约束;不传则默认不绑定 Prompt,建组后可通过 ModifyUserGroupPrompt 绑定、更换版本或解绑。仅传入 PromptId 或 PromptVersion 其一时返回 InvalidParameter;PromptId 不存在时返回 ResourceNotFound.Prompt;PromptVersion 不存在于该 Prompt 的历史版本中时返回 ResourceNotFound.PromptVersion。
268
268
  */
269
269
  async CreateUserGroup(req, cb) {
270
270
  return this.request("CreateUserGroup", req, cb);
@@ -496,6 +496,14 @@ export interface CreateUserGroupRequest {
496
496
  * <p>建组时直接关联的预算 ID(须为已存在的 Budget)。关联后由该 Budget 统一管理本组的消费上限与限速。不传表示不关联预算,可建组后再用 AssociateBudget 关联。</p>
497
497
  */
498
498
  BudgetId?: string;
499
+ /**
500
+ * <p>建组时绑定的 Prompt 资源 ID(pmt-xxx,须为该实例下已存在的 Prompt)。与 PromptVersion 必须成对传入,仅传其一将返回错误。不传表示默认不绑定 Prompt,可建组后再调用 ModifyUserGroupPrompt 绑定或更换版本。绑定后,组内 Key 的请求将按该版本 Prompt 的 Content 与 RewriteStrategy 注入或改写 system 内容。</p>
501
+ */
502
+ PromptId?: string;
503
+ /**
504
+ * <p>绑定的 Prompt 版本号(如 v1、v2,由 CreatePrompt / CreatePromptVersion 生成,长度不超过16个字符),与 PromptId 必须成对传入,须为该 Prompt 下已存在的版本。版本为不可变快照,Prompt 后续新增版本不会自动生效于已绑定的用户组,需显式重新绑定新版本。一个用户组同时只关联一份 Prompt 的一个版本,重复绑定即为替换。</p>
505
+ */
506
+ PromptVersion?: string;
499
507
  /**
500
508
  * <p>用户组意图路由白名单(ir-xxx)。每一项须为该实例已创建的意图路由名。命中意图路由名时其内部真实模型自动豁免白名单。为空表示不授权任何意图路由。</p>
501
509
  */