mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-22 04:19:40 +00:00
test(providers): assert Gemini 4 Carbon ids use thinkingLevel
Graft the isGeminiThinkingLevelModel assertion from #19809 so the bare, Antigravity tier and vertex-prefixed Carbon ids stay on the thinkingLevel path. Only the test is taken; the unverified vertex catalog row and CI input-modality row from #19809 are intentionally left out. Co-authored-by: Rafa Martins <rafacpti23@users.noreply.github.com>
This commit is contained in:
@@ -90,6 +90,13 @@ test("gemini API-key provider lists gemini-4-carbon", () => {
|
||||
assert.equal(m.supportsVision, true);
|
||||
});
|
||||
|
||||
test("gemini-4-carbon is recognized as a thinkingLevel model", async () => {
|
||||
const { isGeminiThinkingLevelModel } = await import("../../open-sse/services/thinkingBudget.ts");
|
||||
assert.equal(isGeminiThinkingLevelModel("gemini-4-carbon"), true);
|
||||
assert.equal(isGeminiThinkingLevelModel("antigravity/gemini-4-carbon-high"), true);
|
||||
assert.equal(isGeminiThinkingLevelModel("vertex/gemini-4-carbon"), true);
|
||||
});
|
||||
|
||||
test("Carbon shares the Gemini 4 quota family with Argon", () => {
|
||||
for (const id of TIERS) assert.equal(getAntigravityQuotaFamily(`agy/${id}`), "argon");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user