dsh-cloudq 0.1.6 → 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/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 签名 ----
|