v1.3.12:Google Vertex Anthropic 缓存 + Azure 修复
发布日期:2026年3月31日
🎯 一句话总结
Google Vertex Anthropic 现在支持提示词缓存和缓存 Token 统计,修复了 AI SDK v6 迁移后的 Azure 兼容问题。
🆕 新功能:Google Vertex Anthropic 缓存
这次更新了什么?
启用了 Google Vertex AI 上 Anthropic 模型的提示词缓存(prompt caching)功能,并添加了缓存 Token 的追踪统计。
这有什么用?
- 节省费用:重复的系统提示词和上下文会被缓存,减少 Token 消耗
- 更快响应:缓存命中的请求响应更快
- 透明统计:在会话统计中能看到缓存节省了多少 Token
🔧 问题修复
Azure Provider 选项转发
问题:迁移到 AI SDK v6 后,Azure Provider 的选项参数没有被正确转发。
修复:Azure 选项现在正确传递。
插件 Slot 重复挂载
问题:插件的 replace 类型 Slot 会将内容挂载多次。
修复:每个 Slot 现在只挂载一次。
📊 要不要升级?
| 情况 | 建议 |
|---|---|
| 使用 Google Vertex Anthropic | ✅ 强烈推荐 |
| 使用 Azure + 遇到模型问题 | ✅ 推荐 |
| 正常使用中 | 可以等下次 |
⬆️ 升级命令
bash
opencode upgrade📋 技术细节
点击展开完整更新列表
Core
- Enabled prompt caching and cache token tracking for Google Vertex Anthropic. (@major)
- Fixed Azure provider options being forwarded correctly after the AI SDK v6 migration.
TUI
- Fixed plugin
replaceslots mounting content more than once.
Thank you to 2 community contributors:
- @major: feat: enable prompt caching and cache token tracking for google-vertex-anthropic (#20266)
- @github-actions[bot]: Update VOUCHED list

