mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 01:30:21 +00:00
fix(config): avoid Anthropic startup crash (#45520)
Co-authored-by: Val Alexander <bunsthedev@gmail.com>
This commit is contained in:
@@ -121,6 +121,12 @@ describe("model-selection", () => {
|
||||
defaultProvider: "anthropic",
|
||||
expected: { provider: "anthropic", model: "claude-sonnet-4-6" },
|
||||
},
|
||||
{
|
||||
name: "keeps dated anthropic model ids unchanged",
|
||||
variants: ["anthropic/claude-sonnet-4-20250514", "claude-sonnet-4-20250514"],
|
||||
defaultProvider: "anthropic",
|
||||
expected: { provider: "anthropic", model: "claude-sonnet-4-20250514" },
|
||||
},
|
||||
{
|
||||
name: "normalizes deprecated google flash preview ids",
|
||||
variants: ["google/gemini-3.1-flash-preview", "gemini-3.1-flash-preview"],
|
||||
|
||||
Reference in New Issue
Block a user