Skip to content

Commit 7df9550

Browse files
committed
feat(fireworks): add kimi-k2p7-code model
1 parent 496100f commit 7df9550

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

packages/types/src/providers/fireworks.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export type FireworksModelId =
66
| "accounts/fireworks/models/kimi-k2-thinking"
77
| "accounts/fireworks/models/kimi-k2p5"
88
| "accounts/fireworks/models/kimi-k2p6"
9+
| "accounts/fireworks/models/kimi-k2p7-code"
910
| "accounts/fireworks/models/minimax-m2"
1011
| "accounts/fireworks/models/minimax-m2p1"
1112
| "accounts/fireworks/models/qwen3-235b-a22b-instruct-2507"
@@ -265,6 +266,20 @@ export const fireworksModels = {
265266
description:
266267
"DeepSeek V4 Pro is the latest iteration of the DeepSeek model family, with improved reasoning, code generation, and instruction following over the V3 series.",
267268
},
269+
"accounts/fireworks/models/kimi-k2p7-code": {
270+
maxTokens: 16384,
271+
contextWindow: 262144,
272+
supportsImages: true,
273+
supportsPromptCache: true,
274+
preserveReasoning: true,
275+
supportsTemperature: true,
276+
defaultTemperature: 1.0,
277+
inputPrice: 0.95,
278+
outputPrice: 4.0,
279+
cacheReadsPrice: 0.19,
280+
description:
281+
"Kimi K2.7 Code is Moonshot AI's latest coding-focused model, building on K2.6 with enhanced code generation, reasoning, and unified vision/text understanding for software development workflows.",
282+
},
268283
"accounts/fireworks/models/glm-5p1": {
269284
maxTokens: 25344,
270285
contextWindow: 202752,

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,30 @@ describe("FireworksHandler", () => {
183183
)
184184
})
185185

186+
it("should return Kimi K2.7 code model with correct configuration", () => {
187+
const testModelId: FireworksModelId = "accounts/fireworks/models/kimi-k2p7-code"
188+
const handlerWithModel = new FireworksHandler({
189+
apiModelId: testModelId,
190+
fireworksApiKey: "test-fireworks-api-key",
191+
})
192+
const model = handlerWithModel.getModel()
193+
expect(model.id).toBe(testModelId)
194+
expect(model.info).toEqual(
195+
expect.objectContaining({
196+
maxTokens: 16384,
197+
contextWindow: 262144,
198+
supportsImages: true,
199+
supportsPromptCache: true,
200+
supportsTemperature: true,
201+
preserveReasoning: true,
202+
defaultTemperature: 1.0,
203+
inputPrice: 0.95,
204+
outputPrice: 4.0,
205+
cacheReadsPrice: 0.19,
206+
}),
207+
)
208+
})
209+
186210
it("should return MiniMax M2 model with correct configuration", () => {
187211
const testModelId: FireworksModelId = "accounts/fireworks/models/minimax-m2"
188212
const handlerWithModel = new FireworksHandler({

0 commit comments

Comments
 (0)