mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-11 22:51:26 +00:00
Merge 9f86deb441 into 319b5576c7
This commit is contained in:
commit
14902130b1
2 changed files with 38 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ export type FireworksModelId =
|
|||
| "accounts/fireworks/models/glm-4p5-air"
|
||||
| "accounts/fireworks/models/glm-4p6"
|
||||
| "accounts/fireworks/models/glm-4p7"
|
||||
| "accounts/fireworks/models/glm-5"
|
||||
| "accounts/fireworks/models/gpt-oss-20b"
|
||||
| "accounts/fireworks/models/gpt-oss-120b"
|
||||
| "accounts/fireworks/models/llama-v3p3-70b-instruct"
|
||||
|
|
@ -210,6 +211,19 @@ export const fireworksModels = {
|
|||
description:
|
||||
"Z.ai GLM-4.7 is the latest coding model with exceptional performance on complex programming tasks. Features improved reasoning capabilities and enhanced code generation quality.",
|
||||
},
|
||||
"accounts/fireworks/models/glm-5": {
|
||||
maxTokens: 16384,
|
||||
contextWindow: 202752,
|
||||
supportsImages: false,
|
||||
supportsPromptCache: true,
|
||||
supportsReasoningEffort: ["disable", "medium"],
|
||||
reasoningEffort: "medium",
|
||||
preserveReasoning: true,
|
||||
inputPrice: 0.55,
|
||||
outputPrice: 2.19,
|
||||
description:
|
||||
"Z.ai GLM-5 is Zhipu's next-generation model with a 202k context window and built-in thinking capabilities. It delivers state-of-the-art reasoning, coding, and agentic performance.",
|
||||
},
|
||||
"accounts/fireworks/models/llama-v3p3-70b-instruct": {
|
||||
maxTokens: 16384,
|
||||
contextWindow: 131072,
|
||||
|
|
|
|||
|
|
@ -308,6 +308,30 @@ describe("FireworksHandler", () => {
|
|||
)
|
||||
})
|
||||
|
||||
it("should return GLM-5 model with correct configuration", () => {
|
||||
const testModelId: FireworksModelId = "accounts/fireworks/models/glm-5"
|
||||
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: 202752,
|
||||
supportsImages: false,
|
||||
supportsPromptCache: true,
|
||||
supportsReasoningEffort: ["disable", "medium"],
|
||||
reasoningEffort: "medium",
|
||||
preserveReasoning: true,
|
||||
inputPrice: 0.55,
|
||||
outputPrice: 2.19,
|
||||
description: expect.stringContaining("Z.ai GLM-5 is Zhipu's next-generation model"),
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
||||
it("should return gpt-oss-20b model with correct configuration", () => {
|
||||
const testModelId: FireworksModelId = "accounts/fireworks/models/gpt-oss-20b"
|
||||
const handlerWithModel = new FireworksHandler({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue