mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-16 11:41:08 +00:00
33 lines
908 B
TypeScript
33 lines
908 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { selectQaRunnerModelOptions } from "./model-catalog.runtime.js";
|
|
|
|
describe("qa runner model catalog", () => {
|
|
it("filters to available rows and prefers gpt-5.4 first", () => {
|
|
expect(
|
|
selectQaRunnerModelOptions([
|
|
{
|
|
key: "anthropic/claude-sonnet-4-5",
|
|
name: "Claude Sonnet 4.5",
|
|
input: "text",
|
|
available: true,
|
|
missing: false,
|
|
},
|
|
{
|
|
key: "openai/gpt-5.4",
|
|
name: "gpt-5.4",
|
|
input: "text,image",
|
|
available: true,
|
|
missing: false,
|
|
},
|
|
{
|
|
key: "openrouter/auto",
|
|
name: "OpenRouter Auto",
|
|
input: "text",
|
|
available: false,
|
|
missing: false,
|
|
},
|
|
]).map((entry) => entry.key),
|
|
).toEqual(["openai/gpt-5.4", "anthropic/claude-sonnet-4-5"]);
|
|
});
|
|
});
|