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
11 changes: 11 additions & 0 deletions packages/types/src/providers/fireworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type FireworksModelId =
| "accounts/fireworks/models/deepseek-v3p1"
| "accounts/fireworks/models/glm-4p5"
| "accounts/fireworks/models/glm-4p5-air"
| "accounts/fireworks/models/glm-4p6"
| "accounts/fireworks/models/gpt-oss-20b"
| "accounts/fireworks/models/gpt-oss-120b"

Expand Down Expand Up @@ -105,6 +106,16 @@ export const fireworksModels = {
description:
"Z.ai GLM-4.5-Air with 106B total parameters and 12B active parameters. Features unified reasoning, coding, and intelligent agent capabilities.",
},
"accounts/fireworks/models/glm-4p6": {
maxTokens: 25344,
contextWindow: 198000,
supportsImages: false,
supportsPromptCache: false,
inputPrice: 0.55,
outputPrice: 2.19,
description:
"Z.ai GLM-4.6 is an advanced coding model with exceptional performance on complex programming tasks. Features improved reasoning capabilities and enhanced code generation quality, making it ideal for software development workflows.",
},
"accounts/fireworks/models/gpt-oss-20b": {
maxTokens: 16384,
contextWindow: 128000,
Expand Down
21 changes: 21 additions & 0 deletions src/api/providers/__tests__/fireworks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,27 @@ describe("FireworksHandler", () => {
)
})

it("should return GLM-4.6 model with correct configuration", () => {
const testModelId: FireworksModelId = "accounts/fireworks/models/glm-4p6"
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: 25344,
contextWindow: 198000,
supportsImages: false,
supportsPromptCache: false,
inputPrice: 0.55,
outputPrice: 2.19,
description: expect.stringContaining("Z.ai GLM-4.6 is an advanced coding model"),
}),
)
})

it("should return gpt-oss-20b model with correct configuration", () => {
const testModelId: FireworksModelId = "accounts/fireworks/models/gpt-oss-20b"
const handlerWithModel = new FireworksHandler({
Expand Down
Loading