@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- Added MiniMax-M3 model to the `minimax` and `minimax-cn` direct providers, and removed the hardcoded context-window override that was masking models.dev values ([#5313](https://github.com/earendil-works/pi/issues/5313)).
|
||||||
- Added NVIDIA NIM as a built-in OpenAI-compatible provider, exposing public NIM models that support tool use.
|
- Added NVIDIA NIM as a built-in OpenAI-compatible provider, exposing public NIM models that support tool use.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -1657,17 +1657,7 @@ async function generateModels() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const minimaxDirectSupportedIds = new Set(["MiniMax-M2.7", "MiniMax-M2.7-highspeed"]);
|
const minimaxDirectSupportedIds = new Set(["MiniMax-M2.7", "MiniMax-M2.7-highspeed", "MiniMax-M3"]);
|
||||||
|
|
||||||
for (const candidate of allModels) {
|
|
||||||
if (
|
|
||||||
(candidate.provider === "minimax" || candidate.provider === "minimax-cn") &&
|
|
||||||
minimaxDirectSupportedIds.has(candidate.id)
|
|
||||||
) {
|
|
||||||
candidate.contextWindow = 204800;
|
|
||||||
candidate.maxTokens = 131072;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = allModels.length - 1; i >= 0; i--) {
|
for (let i = allModels.length - 1; i >= 0; i--) {
|
||||||
const candidate = allModels[i];
|
const candidate = allModels[i];
|
||||||
|
|||||||
@@ -5564,6 +5564,23 @@ export const MODELS = {
|
|||||||
contextWindow: 204800,
|
contextWindow: 204800,
|
||||||
maxTokens: 131072,
|
maxTokens: 131072,
|
||||||
} satisfies Model<"anthropic-messages">,
|
} satisfies Model<"anthropic-messages">,
|
||||||
|
"MiniMax-M3": {
|
||||||
|
id: "MiniMax-M3",
|
||||||
|
name: "MiniMax-M3",
|
||||||
|
api: "anthropic-messages",
|
||||||
|
provider: "minimax",
|
||||||
|
baseUrl: "https://api.minimax.io/anthropic",
|
||||||
|
reasoning: true,
|
||||||
|
input: ["text", "image"],
|
||||||
|
cost: {
|
||||||
|
input: 0.3,
|
||||||
|
output: 1.2,
|
||||||
|
cacheRead: 0.06,
|
||||||
|
cacheWrite: 0.375,
|
||||||
|
},
|
||||||
|
contextWindow: 512000,
|
||||||
|
maxTokens: 131072,
|
||||||
|
} satisfies Model<"anthropic-messages">,
|
||||||
},
|
},
|
||||||
"minimax-cn": {
|
"minimax-cn": {
|
||||||
"MiniMax-M2.7": {
|
"MiniMax-M2.7": {
|
||||||
@@ -5600,6 +5617,23 @@ export const MODELS = {
|
|||||||
contextWindow: 204800,
|
contextWindow: 204800,
|
||||||
maxTokens: 131072,
|
maxTokens: 131072,
|
||||||
} satisfies Model<"anthropic-messages">,
|
} satisfies Model<"anthropic-messages">,
|
||||||
|
"MiniMax-M3": {
|
||||||
|
id: "MiniMax-M3",
|
||||||
|
name: "MiniMax-M3",
|
||||||
|
api: "anthropic-messages",
|
||||||
|
provider: "minimax-cn",
|
||||||
|
baseUrl: "https://api.minimaxi.com/anthropic",
|
||||||
|
reasoning: true,
|
||||||
|
input: ["text", "image"],
|
||||||
|
cost: {
|
||||||
|
input: 0.3,
|
||||||
|
output: 1.2,
|
||||||
|
cacheRead: 0.06,
|
||||||
|
cacheWrite: 0.375,
|
||||||
|
},
|
||||||
|
contextWindow: 512000,
|
||||||
|
maxTokens: 131072,
|
||||||
|
} satisfies Model<"anthropic-messages">,
|
||||||
},
|
},
|
||||||
"mistral": {
|
"mistral": {
|
||||||
"codestral-latest": {
|
"codestral-latest": {
|
||||||
@@ -9689,9 +9723,9 @@ export const MODELS = {
|
|||||||
reasoning: true,
|
reasoning: true,
|
||||||
input: ["text"],
|
input: ["text"],
|
||||||
cost: {
|
cost: {
|
||||||
input: 0.3,
|
input: 0.075,
|
||||||
output: 2.5,
|
output: 0.625,
|
||||||
cacheRead: 0.06,
|
cacheRead: 0.015,
|
||||||
cacheWrite: 0,
|
cacheWrite: 0,
|
||||||
},
|
},
|
||||||
contextWindow: 262144,
|
contextWindow: 262144,
|
||||||
|
|||||||
Reference in New Issue
Block a user