From b0f68f55eaaa1720335939d55d62869e71786a35 Mon Sep 17 00:00:00 2001 From: octo-patch <266937838+octo-patch@users.noreply.github.com> Date: Wed, 29 Jul 2026 12:01:48 +0000 Subject: [PATCH] feat(llm-model-catalog): add MiniMax provider models MiniMax-M3 and MiniMax-M2.7 Add catalog metadata and token pricing for MiniMax-M3 and MiniMax-M2.7 so runs on these models are matched for observability and cost attribution, then regenerate defaultPrices.ts and modelCatalog.ts from the JSON sources. --- .../src/default-model-prices.json | 43 +++++++++++++++++++ .../llm-model-catalog/src/defaultPrices.ts | 37 ++++++++++++++++ .../llm-model-catalog/src/model-catalog.json | 30 +++++++++++++ .../llm-model-catalog/src/modelCatalog.ts | 34 +++++++++++++++ 4 files changed, 144 insertions(+) diff --git a/internal-packages/llm-model-catalog/src/default-model-prices.json b/internal-packages/llm-model-catalog/src/default-model-prices.json index 62e9adbf03..0862c7a6a7 100644 --- a/internal-packages/llm-model-catalog/src/default-model-prices.json +++ b/internal-packages/llm-model-catalog/src/default-model-prices.json @@ -3987,5 +3987,48 @@ } } ] + }, + { + "id": "minimax-m3", + "modelName": "MiniMax-M3", + "matchPattern": "(?i)^(minimax/)?(MiniMax-M3)$", + "createdAt": "2026-07-29T00:00:00.000Z", + "updatedAt": "2026-07-29T00:00:00.000Z", + "pricingTiers": [ + { + "id": "minimax-m3_tier_default", + "name": "Standard", + "isDefault": true, + "priority": 0, + "conditions": [], + "prices": { + "input": 0.0000006, + "output": 0.0000024, + "input_cache_read": 0.00000012 + } + } + ] + }, + { + "id": "minimax-m2-7", + "modelName": "MiniMax-M2.7", + "matchPattern": "(?i)^(minimax/)?(MiniMax-M2.7)$", + "createdAt": "2026-07-29T00:00:00.000Z", + "updatedAt": "2026-07-29T00:00:00.000Z", + "pricingTiers": [ + { + "id": "minimax-m2-7_tier_default", + "name": "Standard", + "isDefault": true, + "priority": 0, + "conditions": [], + "prices": { + "input": 0.0000003, + "output": 0.0000012, + "input_cache_read": 0.00000006, + "input_cache_creation": 0.000000375 + } + } + ] } ] diff --git a/internal-packages/llm-model-catalog/src/defaultPrices.ts b/internal-packages/llm-model-catalog/src/defaultPrices.ts index 982b6b2ec1..88b4c4bd39 100644 --- a/internal-packages/llm-model-catalog/src/defaultPrices.ts +++ b/internal-packages/llm-model-catalog/src/defaultPrices.ts @@ -3108,4 +3108,41 @@ export const defaultModelPrices: DefaultModelDefinition[] = [ }, ], }, + { + modelName: "MiniMax-M3", + matchPattern: "(?i)^(minimax/)?(MiniMax-M3)$", + startDate: "2026-07-29T00:00:00.000Z", + pricingTiers: [ + { + name: "Standard", + isDefault: true, + priority: 0, + conditions: [], + prices: { + input: 6e-7, + output: 0.0000024, + input_cache_read: 1.2e-7, + }, + }, + ], + }, + { + modelName: "MiniMax-M2.7", + matchPattern: "(?i)^(minimax/)?(MiniMax-M2.7)$", + startDate: "2026-07-29T00:00:00.000Z", + pricingTiers: [ + { + name: "Standard", + isDefault: true, + priority: 0, + conditions: [], + prices: { + input: 3e-7, + output: 0.0000012, + input_cache_read: 6e-8, + input_cache_creation: 3.75e-7, + }, + }, + ], + }, ]; diff --git a/internal-packages/llm-model-catalog/src/model-catalog.json b/internal-packages/llm-model-catalog/src/model-catalog.json index 23056f5fda..9234b683a3 100644 --- a/internal-packages/llm-model-catalog/src/model-catalog.json +++ b/internal-packages/llm-model-catalog/src/model-catalog.json @@ -1,4 +1,34 @@ { + "MiniMax-M2.7": { + "provider": "minimax", + "description": "MiniMax's text-only large language model with a 204,800-token context window and always-on thinking for step-by-step reasoning.", + "contextWindow": 204800, + "maxOutputTokens": null, + "capabilities": ["extended_thinking"], + "releaseDate": null, + "isHidden": false, + "supportsStructuredOutput": false, + "supportsParallelToolCalls": false, + "supportsStreamingToolCalls": false, + "deprecationDate": null, + "knowledgeCutoff": null, + "resolvedAt": "2026-07-29T00:00:00.000Z" + }, + "MiniMax-M3": { + "provider": "minimax", + "description": "MiniMax's large language model with a 1,000,000-token context window that accepts text, image, and video input and supports adaptive thinking that can be switched on or off.", + "contextWindow": 1000000, + "maxOutputTokens": null, + "capabilities": ["vision", "extended_thinking"], + "releaseDate": null, + "isHidden": false, + "supportsStructuredOutput": false, + "supportsParallelToolCalls": false, + "supportsStreamingToolCalls": false, + "deprecationDate": null, + "knowledgeCutoff": null, + "resolvedAt": "2026-07-29T00:00:00.000Z" + }, "chatgpt-4o-latest": { "provider": "openai", "description": "OpenAI's flagship multimodal model optimized for speed and cost, capable of processing text, images, and audio with strong performance across reasoning, coding, and creative tasks.", diff --git a/internal-packages/llm-model-catalog/src/modelCatalog.ts b/internal-packages/llm-model-catalog/src/modelCatalog.ts index d90eb1a992..445b6983df 100644 --- a/internal-packages/llm-model-catalog/src/modelCatalog.ts +++ b/internal-packages/llm-model-catalog/src/modelCatalog.ts @@ -4,6 +4,40 @@ import type { ModelCatalogEntry } from "./types.js"; // Run `pnpm run generate-catalog` to update the JSON, then `pnpm run generate` to regenerate. export const modelCatalog: Record = { + "MiniMax-M2.7": { + provider: "minimax", + description: + "MiniMax's text-only large language model with a 204,800-token context window and always-on thinking for step-by-step reasoning.", + contextWindow: 204800, + maxOutputTokens: null, + capabilities: ["extended_thinking"], + releaseDate: null, + isHidden: false, + supportsStructuredOutput: false, + supportsParallelToolCalls: false, + supportsStreamingToolCalls: false, + deprecationDate: null, + knowledgeCutoff: null, + resolvedAt: "2026-07-29T00:00:00.000Z", + baseModelName: null, + }, + "MiniMax-M3": { + provider: "minimax", + description: + "MiniMax's large language model with a 1,000,000-token context window that accepts text, image, and video input and supports adaptive thinking that can be switched on or off.", + contextWindow: 1000000, + maxOutputTokens: null, + capabilities: ["vision", "extended_thinking"], + releaseDate: null, + isHidden: false, + supportsStructuredOutput: false, + supportsParallelToolCalls: false, + supportsStreamingToolCalls: false, + deprecationDate: null, + knowledgeCutoff: null, + resolvedAt: "2026-07-29T00:00:00.000Z", + baseModelName: null, + }, "chatgpt-4o-latest": { provider: "openai", description: