tencentcloud-sdk-nodejs-cls 4.1.214 → 4.1.216

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-cls",
3
- "version": "4.1.214",
3
+ "version": "4.1.216",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -538,7 +538,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
538
538
  /**
539
539
  * 调用接口,发起一次对话请求。
540
540
  本接口支持智能生成检索分析语句等日志服务AI功能。
541
- ⚠️注意:通过SSE流式调用此接口时,请务必设置请求域名(Endpoint)为 cls.ai.tencentcloudapi.com
541
+ ⚠️注意:通过SSE流式调用此接口时,请务必设置请求域名(Endpoint)为 cls.ai.tencentcloudapi.com (VPC内网环境可配置 cls.ai.internal.tencentcloudapi.com)。
542
542
  */
543
543
  ChatCompletions(req: ChatCompletionsRequest, cb?: (error: string, rep: ChatCompletionsResponse) => void): Promise<ChatCompletionsResponse>;
544
544
  /**
@@ -816,7 +816,7 @@ class Client extends TencentCloudCommon.AbstractClient {
816
816
  /**
817
817
  * 调用接口,发起一次对话请求。
818
818
  本接口支持智能生成检索分析语句等日志服务AI功能。
819
- ⚠️注意:通过SSE流式调用此接口时,请务必设置请求域名(Endpoint)为 cls.ai.tencentcloudapi.com
819
+ ⚠️注意:通过SSE流式调用此接口时,请务必设置请求域名(Endpoint)为 cls.ai.tencentcloudapi.com (VPC内网环境可配置 cls.ai.internal.tencentcloudapi.com)。
820
820
  */
821
821
  async ChatCompletions(req, cb) {
822
822
  return this.request("ChatCompletions", req, cb);
@@ -8694,11 +8694,11 @@ export interface ChatCompletionsRequest {
8694
8694
  */
8695
8695
  Messages: Array<Message>;
8696
8696
  /**
8697
- * <p>流式调用开关。<br>说明:</p><ol><li>未传值时默认为非流式调用(false)。</li><li>流式调用时以 SSE 协议增量返回结果(返回值取 Choices[n].Delta 中的值,需要拼接增量数据才能获得完整结果)。</li><li>非流式调用时:<br>调用方式与普通 HTTP 请求无异。<br>接口响应耗时较长,如需更低时延建议设置为 true。<br>只返回一次最终结果(返回值取 Choices[n].Message 中的值)。</li></ol><p>注意:</p><ol><li>通过 SDK 调用时,流式和非流式调用需用不同的方式获取返回值,具体参考 SDK 中的注释或示例(在各语言 SDK 代码仓库的 examples/hunyuan/v20230901/ 目录中)。</li><li>可能会出现部分内容已输出,但中间某一段响应中的 FinishReason 值为 sensitive,此时说明安全审核未通过。如果业务场景有实时文字上屏的需求,需要自行撤回已上屏的内容,并建议自定义替换为一条提示语,如 “这个问题我不方便回答,不如我们换个话题试试”,以保障终端体验。</li></ol>
8697
+ * <p>流式调用开关。<br>说明:</p><ol><li>未传值时默认为非流式调用(false)。</li><li>流式调用时以 SSE 协议增量返回结果(返回值取 Choices[n].Delta 中的值,需要拼接增量数据才能获得完整结果)。</li><li>非流式调用时:<br>调用方式与普通 HTTP 请求无异。<br>接口响应耗时较长,如需更低时延建议设置为 true。<br>只返回一次最终结果(返回值取 Choices[n].Message 中的值)。</li></ol><p>注意:</p><ol><li>通过 SDK 调用时,流式和非流式调用需用不同的方式获取返回值,具体参考 SDK 中的注释或示例(在各语言 SDK 代码仓库的 examples/cls/v20201016/ 目录中)。</li><li>可能会出现部分内容已输出,但中间某一段响应中的 FinishReason 值为 sensitive,此时说明安全审核未通过。如果业务场景有实时文字上屏的需求,需要自行撤回已上屏的内容,并建议自定义替换为一条提示语,如 “这个问题我不方便回答,不如我们换个话题试试”,以保障终端体验。</li></ol>
8698
8698
  */
8699
8699
  Stream?: boolean;
8700
8700
  /**
8701
- * <p>额外元数据信息。例如:[{&quot;Key&quot;:&quot;topic_id&quot;,&quot;Value&quot;:&quot;xxxxxxxx-xxxx&quot;},{&quot;Key&quot;:&quot;topic_region&quot;,&quot;Value&quot;:&quot;ap-guangzhou&quot;}]</p>
8701
+ * <p>额外元数据信息。例如:[{&quot;Key&quot;:&quot;topic_id&quot;,&quot;Value&quot;:&quot;xxxxxxxx-xxxx&quot;},{&quot;Key&quot;:&quot;topic_region&quot;,&quot;Value&quot;:&quot;ap-guangzhou&quot;}]</p><p>建议按照示例传递元数据信息,否则可能造成结果不准确。例如 text2sql,不传 topic_id, topic_region,将导致无法根据日志主题索引生成准确的检索语句。</p>
8702
8702
  */
8703
8703
  Metadata?: Array<MetadataItem>;
8704
8704
  }