Skip to content

Commit 70ee1a5

Browse files
committed
fix: asserting the selected model.info matches the static config to catch mapping/regression errors beyond temperature
1 parent dbb527c commit 70ee1a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/providers/__tests__/chutes.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ describe("ChutesHandler", () => {
508508
})
509509
const selected = handlerWithModel.getModel()
510510
expect(selected.info.temperature).toBe(0.5)
511+
expect(selected.info).toEqual(expect.objectContaining(chutesModels[modelId]))
511512
})
512513

513514
it("should have correct pricing and context for zai-org/GLM-4.6-turbo", () => {

0 commit comments

Comments
 (0)