Skip to content

Commit a83d4b0

Browse files
committed
Add minimax m2.7
1 parent 1031c19 commit a83d4b0

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

.agents/types/agent-definition.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ export type ModelName =
431431
| 'z-ai/glm-4.7-flash'
432432
| 'z-ai/glm-4.7-flash:nitro'
433433
| 'minimax/minimax-m2.5'
434+
| 'minimax/minimax-m2.7'
434435
| (string & {})
435436

436437
import type { ToolName, GetToolParams } from './tools'

agents/types/agent-definition.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ export type ModelName =
432432
| 'z-ai/glm-4.7-flash'
433433
| 'z-ai/glm-4.7-flash:nitro'
434434
| 'minimax/minimax-m2.5'
435+
| 'minimax/minimax-m2.7'
435436
| (string & {})
436437

437438
import type { ToolName, GetToolParams } from './tools'

common/src/templates/initial-agents-dir/types/agent-definition.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ export type ModelName =
432432
| 'z-ai/glm-4.7-flash'
433433
| 'z-ai/glm-4.7-flash:nitro'
434434
| 'minimax/minimax-m2.5'
435+
| 'minimax/minimax-m2.7'
435436
| (string & {})
436437

437438
import type { ToolName, GetToolParams } from './tools'

web/src/llm-api/fireworks.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const fireworksAgent = new Agent({
2929
/** Map from OpenRouter model IDs to Fireworks standard API model IDs */
3030
const FIREWORKS_MODEL_MAP: Record<string, string> = {
3131
'minimax/minimax-m2.5': 'accounts/fireworks/models/minimax-m2p5',
32+
'minimax/minimax-m2.7': 'accounts/fireworks/models/minimax-m2p7',
3233
'z-ai/glm-5.1': 'accounts/fireworks/models/glm-5p1',
3334
}
3435

@@ -152,6 +153,11 @@ const FIREWORKS_PRICING_MAP: Record<string, FireworksPricing> = {
152153
cachedInputCostPerToken: 0.03 / 1_000_000,
153154
outputCostPerToken: 1.20 / 1_000_000,
154155
},
156+
'minimax/minimax-m2.7': {
157+
inputCostPerToken: 0.30 / 1_000_000,
158+
cachedInputCostPerToken: 0.06 / 1_000_000,
159+
outputCostPerToken: 1.20 / 1_000_000,
160+
},
155161
'z-ai/glm-5.1': {
156162
inputCostPerToken: 1.40 / 1_000_000,
157163
cachedInputCostPerToken: 0.26 / 1_000_000,

0 commit comments

Comments
 (0)