feat: NativeClaudeSession 加入 CCH 签名

匹配真实 Claude Code 客户端协议,兼容需要验证客户端身份的代理。
This commit is contained in:
ggandmee-cloud
2026-04-18 14:42:29 -04:00
parent ec34b7e1c0
commit c79b1c5140
2 changed files with 16 additions and 3 deletions

View File

@@ -107,6 +107,10 @@
# 默认 False。关键字段**所有反代/镜像 Claude Code 协议的渠道
# 都必须置 True**CC switch、anyrouter、claude-relay-service
# 等)。真 Anthropic 端点sk-ant-)不需要开。
#
# CCH 签名 部分代理会校验 Claude Code 客户端身份CCH。安装 xxhash
# pip install xxhash后自动启用签名未安装则跳过不影响
# 不校验 CCH 的渠道。
# ══════════════════════════════════════════════════════════════════════════════