Skip to content

Commit 64a0508

Browse files
committed
test(types): cover defaults preserved during rebase
1 parent a10d116 commit 64a0508

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/types/src/__tests__/provider-default-model.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ import {
1717
anthropicDefaultModelId,
1818
getProviderDefaultModelId,
1919
internationalZAiDefaultModelId,
20+
kimiCodeDefaultModelId,
2021
mainlandZAiDefaultModelId,
2122
openRouterDefaultModelId,
2223
vscodeLlmDefaultModelId,
24+
zooGatewayDefaultModelId,
2325
} from "../providers/index.js"
2426

2527
describe("getProviderDefaultModelId", () => {
@@ -31,6 +33,13 @@ describe("getProviderDefaultModelId", () => {
3133
expect(getProviderDefaultModelId(providerIdentifiers.vscodeLm)).toBe(vscodeLlmDefaultModelId)
3234
})
3335

36+
it.each([
37+
[providerIdentifiers.kimiCode, kimiCodeDefaultModelId],
38+
[providerIdentifiers.zooGateway, zooGatewayDefaultModelId],
39+
])("preserves the %s default added on main", (provider, expectedModelId) => {
40+
expect(getProviderDefaultModelId(provider)).toBe(expectedModelId)
41+
})
42+
3443
it("preserves region-dependent defaults", () => {
3544
expect(getProviderDefaultModelId(providerIdentifiers.zai, { isChina: true })).toBe(mainlandZAiDefaultModelId)
3645
expect(getProviderDefaultModelId(providerIdentifiers.zai)).toBe(internationalZAiDefaultModelId)

0 commit comments

Comments
 (0)