Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions packages/types/src/providers/fireworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export type FireworksModelId =
| "accounts/fireworks/models/kimi-k2-thinking"
| "accounts/fireworks/models/kimi-k2p5"
| "accounts/fireworks/models/kimi-k2p6"
| "accounts/fireworks/models/kimi-k2p7-code"
| "accounts/fireworks/models/minimax-m2"
| "accounts/fireworks/models/minimax-m2p1"
| "accounts/fireworks/models/qwen3-235b-a22b-instruct-2507"
Expand Down Expand Up @@ -265,6 +266,20 @@ export const fireworksModels = {
description:
"DeepSeek V4 Pro is the latest iteration of the DeepSeek model family, with improved reasoning, code generation, and instruction following over the V3 series.",
},
"accounts/fireworks/models/kimi-k2p7-code": {
maxTokens: 16384,
contextWindow: 262144,
supportsImages: true,
supportsPromptCache: true,
preserveReasoning: true,
supportsTemperature: true,
defaultTemperature: 1.0,
inputPrice: 0.95,
outputPrice: 4.0,
cacheReadsPrice: 0.19,
Comment thread
p12tic marked this conversation as resolved.
description:
"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.",
},
Comment thread
p12tic marked this conversation as resolved.
"accounts/fireworks/models/glm-5p1": {
maxTokens: 25344,
contextWindow: 202752,
Expand Down
24 changes: 24 additions & 0 deletions src/api/providers/__tests__/fireworks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,30 @@ describe("FireworksHandler", () => {
)
})

it("should return Kimi K2.7 code model with correct configuration", () => {
const testModelId: FireworksModelId = "accounts/fireworks/models/kimi-k2p7-code"
const handlerWithModel = new FireworksHandler({
apiModelId: testModelId,
fireworksApiKey: "test-fireworks-api-key",
})
const model = handlerWithModel.getModel()
expect(model.id).toBe(testModelId)
expect(model.info).toEqual(
expect.objectContaining({
maxTokens: 16384,
contextWindow: 262144,
supportsImages: true,
supportsPromptCache: true,
supportsTemperature: true,
preserveReasoning: true,
defaultTemperature: 1.0,
inputPrice: 0.95,
outputPrice: 4.0,
cacheReadsPrice: 0.19,
}),
)
})

it("should return MiniMax M2 model with correct configuration", () => {
const testModelId: FireworksModelId = "accounts/fireworks/models/minimax-m2"
const handlerWithModel = new FireworksHandler({
Expand Down
Loading