Anthropic 启动崩溃修复:dated model refs 初始化顺序问题(PR #45520)
问题/场景:配置含 `anthropic/claude-sonnet-4-20250514` 等引用时,网关启动可能报 alias 初始化错误并崩溃。前置条件:使用 Anthropic dated refs。实施步骤:1) 升级到 PR #45520;2) 保留现有 refs 重启;3) 检查无 ReferenceError;4) 回归一次 Anthropic 调用。关键命令:openclaw gateway restart/status。验证:网关稳定启动并正常响应。风险与边界:provider 凭据/配额问题不在本修复范围。来源归因:GitHub PR #45520。
GITHUBDiscovered 2026-03-14Author openclaw contributors
Prerequisites
- Your config includes dated Anthropic model references.
Steps
- Upgrade to build containing PR #45520.
- Restart gateway with existing Anthropic refs intact.
- Run a real Anthropic request as post-start validation.
Commands
openclaw gateway restartopenclaw gateway statusVerify
Gateway boots cleanly and serves Anthropic requests with dated refs.
Caveats
- If config has unrelated schema errors, startup can still fail(需验证).
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗