fix: retire freefirst fast alias

This commit is contained in:
Agent Board
2026-07-13 09:37:03 +08:00
parent d6a25afa0a
commit d93319fe88
2 changed files with 47 additions and 14 deletions
+2 -2
View File
@@ -105,7 +105,7 @@ async function main() {
await page.locator("#ai-admin-models.is-active").waitFor();
const modelPanel = page.locator("#ai-admin-models");
await modelPanel.locator('[data-field="allowedModels"]').fill(
"omniroute/freefirst, omniroute/freefirst-fast",
"omniroute/freefirst, omniroute/gpt-5.4-mini",
);
await modelPanel.locator('[data-field="secretRef"]').fill("env://OMNIROUTE_API_KEY");
await modelPanel.getByRole("button", { name: "保存配置" }).click();
@@ -250,7 +250,7 @@ async function main() {
});
assert.equal(effective.defaultModel, "omniroute/freefirst");
assert(
(effective.models || []).some((model) => model.id === "omniroute/freefirst-fast"),
(effective.models || []).some((model) => model.id === "omniroute/gpt-5.4-mini"),
"effective models 应包含管理员允许的模型",
);
assert(