fix(ci): type zai dynamic model test callbacks

This commit is contained in:
Peter Steinberger 2026-04-04 09:51:28 +01:00
parent c26ab4649d
commit 74d39e9efe
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ describe("zai provider plugin", () => {
provider: "zai",
modelId: testCase.modelId,
modelRegistry: {
find: (_provider, modelId) => (modelId === "glm-4.7" ? template : null),
find: (_provider: string, modelId: string) => (modelId === "glm-4.7" ? template : null),
},
} as never),
).toMatchObject({
@ -122,7 +122,7 @@ describe("zai provider plugin", () => {
provider: "zai",
modelId: "glm-5-turbo",
modelRegistry: {
find: (_provider, modelId) =>
find: (_provider: string, modelId: string) =>
modelId === "glm-5-turbo" ? registered : modelId === "glm-4.7" ? template : null,
},
} as never),
@ -149,7 +149,7 @@ describe("zai provider plugin", () => {
provider: "zai",
modelId: "glm-5-turbo",
modelRegistry: {
find: (_provider, modelId) => (modelId === "glm-4.7" ? template : null),
find: (_provider: string, modelId: string) => (modelId === "glm-4.7" ? template : null),
},
} as never),
).toMatchObject({