mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 06:57:28 +00: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", () => {
|
||||
expect(parseModelRef("anthropic/opus-4.6", "openai")).toEqual({
|
||||
provider: "anthropic",
|
||||
|
||||
Reference in New Issue
Block a user