dsh-cloudq 0.1.7 → 0.1.8
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/lib/index.js
CHANGED
|
@@ -627,7 +627,7 @@ function apply(ctx) {
|
|
|
627
627
|
name: "cloudq",
|
|
628
628
|
description: "用户咨询腾讯云产品资源、AWS、阿里云等多云资源时,查看智能顾问架构图、架构目录、架构详情、架构评估结果、绘制架构图、开通智能顾问时、AI智能巡检、AI容量监测、AI混沌演练、AI云诊断、主动预警、架构健康度、云运维问答、云资源查询、云成本优化、安全合规、云资源盘点、闲置资源检查、云产品最佳实践等AIOps、ChatOps、CloudOps操作时使用。",
|
|
629
629
|
whenToUse: "用户要求进入 CloudQ 模式、使用 CloudQ、咨询云上架构/资源/成本/巡检/诊断等多云或腾讯云运维问题,或点击输入栏 CloudQ 按钮时使用;也适用于架构图查看/评估、AI 巡检、容量监测、混沌演练、云诊断等场景。",
|
|
630
|
-
source: "
|
|
630
|
+
source: "bundled",
|
|
631
631
|
resourceBase: {
|
|
632
632
|
kind: "directory",
|
|
633
633
|
path: skillDirectory()
|
package/package.json
CHANGED
|
@@ -280,9 +280,8 @@ def call_sse_api(question: str, session_id: str,
|
|
|
280
280
|
# OAuth / Connector 模式下需要标记使用 CloudQ 控制台凭证
|
|
281
281
|
if cred_source in ("oauth", "connector"):
|
|
282
282
|
payload["UseCloudQCredential"] = True
|
|
283
|
-
# Source
|
|
284
|
-
|
|
285
|
-
payload["Source"] = source
|
|
283
|
+
# Source 字段统一发送且固定为 dsh(CloudQChatCompletions 三种鉴权方式均支持)
|
|
284
|
+
payload["Source"] = "dsh"
|
|
286
285
|
payload_str = json.dumps(payload, separators=(",", ":"))
|
|
287
286
|
|
|
288
287
|
# ---- TC3-HMAC-SHA256 签名 ----
|