mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 19:01:47 +03:00
test (agents): cover nested provider-prefixed model ids
This commit is contained in:
@@ -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", () => {
|
it("normalizes anthropic alias refs to canonical model ids", () => {
|
||||||
expect(parseModelRef("anthropic/opus-4.6", "openai")).toEqual({
|
expect(parseModelRef("anthropic/opus-4.6", "openai")).toEqual({
|
||||||
provider: "anthropic",
|
provider: "anthropic",
|
||||||
|
|||||||
Reference in New Issue
Block a user