mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 16:54:46 +00:00
test: cover gemini preview models set normalization
This commit is contained in:
@@ -112,6 +112,15 @@ describe("models set + fallbacks", () => {
|
||||
expectWrittenPrimaryModel("openrouter/hunter-alpha");
|
||||
});
|
||||
|
||||
it("normalizes retired Google Gemini preview ids in models set", async () => {
|
||||
mockConfigSnapshot({});
|
||||
const runtime = makeRuntime();
|
||||
|
||||
await modelsSetCommand("google/gemini-3-pro-preview", runtime);
|
||||
|
||||
expectWrittenPrimaryModel("google/gemini-3.1-pro-preview");
|
||||
});
|
||||
|
||||
it("migrates legacy duplicated OpenRouter keys on write", async () => {
|
||||
mockConfigSnapshot({
|
||||
agents: {
|
||||
|
||||
Reference in New Issue
Block a user