Repository navigation
v0.2.12: count_tokens 本地 404、思考后缀兼容与 macOS runner 迁移 - #15
Merged
Merged
Conversation
- count_tokens 改为插件本地返回 404 count_tokens_unsupported,不再因 501 让 CPA v8.0.23 等宿主冷却凭证(CLIProxyAPI #7271)。 - 按 CPA 规则解析模型名思考后缀 model(level)/model(budget):旧宿主不再 因 404 冷却基础模型;v8.0.59 上原生 Messages 补回后缀等级,宿主注入的 reasoning_effort=auto 不再发往上游。 - 新增 cpa_count_tokens.py、cpa_thinking_suffix.py 与对应单元测试,接入 固定基线、四平台和最新 CPA 候选任务;候选任务加跑原生管理、第二轮协议 与热重载;新增每周定时复核。热升级前一版本改为 v0.2.11。 - macos-14 runner 已于 2026-11-02 停用,darwin-arm64 改用 macos-15, 以 MACOSX_DEPLOYMENT_TARGET=14.0 保持最低系统不变并用 otool 校验。 - 版本号、发布说明、部署文档与验证记录更新至 0.2.12。
PR #15 首次 CI 中 cpa_native_management.py 在最新 CPA 候选任务里找不到 dist/commandcodebridge-login。补充构建该程序,并改为逐项运行全部联测、 汇总失败后再退出,使报告完整。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复
count_tokens_unsupported,不访问上游。v0.2.11 的 501 会让 CPA v8.0.23 等宿主冷却凭证,随后的/v1/messages返回 503auth_unavailable(CLIProxyAPI #7271,上游修复1c53721)。已在 v8.0.23 上复现,并验证修复有效。model(level)/model(budget):c9af529)由宿主剥离后缀,但原生 Messages 会丢失后缀指定的等级,宿主注入的reasoning_effort=auto还会被发往上游,在 Anthropic 模型上返回 400。auto/unset。CI
macos-14runner([macOS] macOS 14 Sonoma retirement: GitHub Actions and ADO arm64 on November 2; ADO Intel on November 23 actions/runner-images#13518)。PR test(cpamp): Antigravity 额度行为回归纳入发布门槛 #14 的 macOS 任务正是因此被取消。darwin-arm64 改用macos-15,通过MACOSX_DEPLOYMENT_TARGET=14.0把最低系统保持在 14.0(与 v0.2.11 发布包一致),构建后用otool -l校验。cpa_count_tokens.py、cpa_thinking_suffix.py及对应单元测试,已接入固定 v8.0.23 基线、Windows、Linux/macOS ARM64 和最新 CPA 候选任务。候选任务另外加跑原生管理、第二轮协议和热重载测试。本地验证
go vet、gofmt、go test ./internal/... ./cmd/...均通过;Node 31 项通过;test_cpamp_panel_validation.py在 WSL 下 6 项通过。cpa_thinking_suffix.py,在两个 CPA 版本上都失败,说明该测试能抓到这个问题。compatibility.json未改,CPA 发布门槛仍为 v8.0.23。详见
docs/VALIDATION.md中的 v0.2.12 一节。合并后需另打v0.2.12tag 才会发布。