mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:50:42 +00:00
test: curate google live profile signal
This commit is contained in:
@@ -35,7 +35,12 @@ const HIGH_SIGNAL_LIVE_MODEL_PRIORITY = [
|
||||
|
||||
export const DEFAULT_HIGH_SIGNAL_LIVE_MODEL_LIMIT = HIGH_SIGNAL_LIVE_MODEL_PRIORITY.length;
|
||||
const DEFAULT_HIGH_SIGNAL_LIVE_EXCLUDED_PROVIDERS = new Set(["codex", "codex-cli", "openai-codex"]);
|
||||
const CURATED_ONLY_HIGH_SIGNAL_LIVE_PROVIDERS = new Set(["fireworks", "openrouter", "xai"]);
|
||||
const CURATED_ONLY_HIGH_SIGNAL_LIVE_PROVIDERS = new Set([
|
||||
"fireworks",
|
||||
"google",
|
||||
"openrouter",
|
||||
"xai",
|
||||
]);
|
||||
|
||||
const HIGH_SIGNAL_LIVE_MODEL_PRIORITY_INDEX = new Map<string, number>(
|
||||
HIGH_SIGNAL_LIVE_MODEL_PRIORITY.map((key, index) => [key, index]),
|
||||
|
||||
@@ -462,7 +462,7 @@ describe("isHighSignalLiveModelRef", () => {
|
||||
).toBe(false);
|
||||
});
|
||||
|
||||
it("drops Gemini families older than major version 3 from the default live matrix", () => {
|
||||
it("keeps only curated Gemini routes in the default live matrix", () => {
|
||||
providerRuntimeMocks.resolveProviderModernModelRef.mockReturnValue(true);
|
||||
|
||||
expect(isHighSignalLiveModelRef({ provider: "google", id: "gemini-2.5-flash-lite" })).toBe(
|
||||
@@ -474,6 +474,13 @@ describe("isHighSignalLiveModelRef", () => {
|
||||
expect(isHighSignalLiveModelRef({ provider: "google", id: "gemini-3-flash-preview" })).toBe(
|
||||
true,
|
||||
);
|
||||
expect(isHighSignalLiveModelRef({ provider: "google", id: "gemini-3-pro-preview" })).toBe(
|
||||
false,
|
||||
);
|
||||
expect(
|
||||
isHighSignalLiveModelRef({ provider: "google", id: "gemini-3.1-pro-preview-customtools" }),
|
||||
).toBe(false);
|
||||
expect(isHighSignalLiveModelRef({ provider: "google", id: "gemma-4-31b-it" })).toBe(false);
|
||||
expect(isHighSignalLiveModelRef({ provider: "google", id: "gemini-flash-latest" })).toBe(false);
|
||||
expect(isHighSignalLiveModelRef({ provider: "google", id: "gemini-flash-lite-latest" })).toBe(
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user