Commit Graph
4 Commits
Author SHA1 Message Date
Jidekin 829e519be2 fix(sync): 中国大陆地区受限的 OpenCode 模型不再同步进网关
文档 Go 页脚注写明了地区限制,之前只解析表格、把脚注漏了:
  Beam Free: Not available in ... China (including Hong Kong and Macau) ...
  Muse Spark 1.x Contributor: ... regions permitted by Meta's Geographic Use Policy
本机出口在中国大陆,实测 beam-free / muse-spark-1.3 / muse-spark-1.2 在
zen 与 inference 两条端点均 403 RegionError「This model is not available in
your country」(同批 minimax-m3.1-flash-free / step-5-preview 均 200)。

新增 OC_REGION_BLOCKED 名单:同步时跳过(不新增;网关里已有的按已下线删除),
并在报告里单列「跳过(对中国大陆出口不可用,RegionError)」。
以后换境外出口或文档解除限制,把 id 从名单移走即可恢复。
2026-10-21 10:46:56 +08:00
Jidekin 076cb640d1 chore(sync): 2026-10-21 模型清单同步(+4 / -7)
opencode: +beam-free +minimax-m3.1-flash-free +step-5-preview
          -deepseek-v4-flash -deepseek-v4-flash-vision-exp -grok-4.6
          -kimi-k2.6 -minimax-m2.7 -space-bunny -step-5-preview-free
agnes:    +agnes-2.5-pro-beta(¥3/¥6)
重新适配文档后首次落盘,热重载已生效。
2026-10-21 10:26:51 +08:00
Jidekin 16b63670da fix(sync): 适配 OpenCode 文档改版(Endpoints 改为 /inference/go/<vendor>/v1/)
文档 Endpoints 表地址从 https://opencode.ai/zen/go/v1/<path> 改为按供应商分线:
  /inference/go/openai/v1/{chat/completions,responses}
  /inference/go/anthropic/v1/messages
  /inference/go/google/...(Google 原生,网关不支持)
旧的 "/zen/go/v1/" 硬匹配导致一个模型都解析不出,每日同步固定 exit 2。
改为按路径末尾识别三条协议线(新旧格式都兼容),认不出的跳过并在报告里单列。
2026-10-21 10:26:51 +08:00
Jidekin 5a453c151e chore(frontend): package-lock 去掉腾讯云内网镜像源,改用官方源
194 处 resolved 指向 http://mirrors.tencentyun.com/npm/(腾讯云内网地址,
仅腾讯云机器可达)。在非腾讯云环境 npm ci 会直接失败:
  npm error network request to http://mirrors.tencentyun.com/npm/... failed,
  reason: getaddrinfo ENOTFOUND mirrors.tencentyun.com

改为 https://registry.npmjs.org/ —— 只换 URL,依赖版本与 integrity 哈希完全不变。
本机另配 registry=npmmirror + replace-registry-host=always,安装时自动走国内镜像。
实测:删掉 node_modules 后 npm ci 12.5s 通过,npm run build 28.7s 通过。
2026-10-16 16:06:40 +08:00