test (agents): cover nested provider-prefixed model ids

This commit is contained in:
Vignesh Natarajan
2026-02-14 20:17:01 -08:00
parent 12db4ccb31
commit 482055832d

View File

@@ -29,6 +29,13 @@ describe("model-selection", () => {
});
});
it("preserves nested model ids after provider prefix", () => {
expect(parseModelRef("nvidia/moonshotai/kimi-k2.5", "anthropic")).toEqual({
provider: "nvidia",
model: "moonshotai/kimi-k2.5",
});
});
it("normalizes anthropic alias refs to canonical model ids", () => {
expect(parseModelRef("anthropic/opus-4.6", "openai")).toEqual({
provider: "anthropic",