Skip to content

Commit ba19d20

Browse files
committed
fix: remove duplicate test file and add Kimi K2-0905 test to correct location
- Removed duplicate test file at packages/types/src/providers/__tests__/chutes.spec.ts - Added test for moonshotai/Kimi-K2-Instruct-0905 model to src/api/providers/__tests__/chutes.spec.ts - All tests passing successfully
1 parent f6c75cc commit ba19d20

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

packages/types/src/providers/__tests__/chutes.spec.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,28 @@ describe("ChutesHandler", () => {
297297
)
298298
})
299299

300+
it("should return moonshotai/Kimi-K2-Instruct-0905 model with correct configuration", () => {
301+
const testModelId: ChutesModelId = "moonshotai/Kimi-K2-Instruct-0905"
302+
const handlerWithModel = new ChutesHandler({
303+
apiModelId: testModelId,
304+
chutesApiKey: "test-chutes-api-key",
305+
})
306+
const model = handlerWithModel.getModel()
307+
expect(model.id).toBe(testModelId)
308+
expect(model.info).toEqual(
309+
expect.objectContaining({
310+
maxTokens: 32768,
311+
contextWindow: 262144,
312+
supportsImages: false,
313+
supportsPromptCache: false,
314+
inputPrice: 0.1999,
315+
outputPrice: 0.8001,
316+
description: "Moonshot AI Kimi K2 Instruct 0905 model with 256k context window.",
317+
temperature: 0.5, // Default temperature for non-DeepSeek models
318+
}),
319+
)
320+
})
321+
300322
it("completePrompt method should return text from Chutes API", async () => {
301323
const expectedResponse = "This is a test response from Chutes"
302324
mockCreate.mockResolvedValueOnce({ choices: [{ message: { content: expectedResponse } }] })

0 commit comments

Comments
 (0)