mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 16:10:24 +00:00
feat(models): support minimax highspeed across onboarding
This commit is contained in:
@@ -596,6 +596,11 @@ function buildMinimaxProvider(): ProviderConfig {
|
||||
name: "MiniMax M2.5",
|
||||
reasoning: true,
|
||||
}),
|
||||
buildMinimaxTextModel({
|
||||
id: "MiniMax-M2.5-highspeed",
|
||||
name: "MiniMax M2.5 Highspeed",
|
||||
reasoning: true,
|
||||
}),
|
||||
buildMinimaxTextModel({
|
||||
id: "MiniMax-M2.5-Lightning",
|
||||
name: "MiniMax M2.5 Lightning",
|
||||
@@ -616,6 +621,11 @@ function buildMinimaxPortalProvider(): ProviderConfig {
|
||||
name: "MiniMax M2.5",
|
||||
reasoning: true,
|
||||
}),
|
||||
buildMinimaxTextModel({
|
||||
id: "MiniMax-M2.5-highspeed",
|
||||
name: "MiniMax M2.5 Highspeed",
|
||||
reasoning: true,
|
||||
}),
|
||||
buildMinimaxTextModel({
|
||||
id: "MiniMax-M2.5-Lightning",
|
||||
name: "MiniMax M2.5 Lightning",
|
||||
|
||||
@@ -11,8 +11,8 @@ const LIVE = isTruthyEnvValue(process.env.ZAI_LIVE_TEST) || isTruthyEnvValue(pro
|
||||
|
||||
const describeLive = LIVE && ZAI_KEY ? describe : describe.skip;
|
||||
|
||||
async function expectModelReturnsAssistantText(modelId: "glm-4.7" | "glm-4.7-flashx") {
|
||||
const model = getModel("zai", modelId as "glm-4.7");
|
||||
async function expectModelReturnsAssistantText(modelId: "glm-5" | "glm-4.7") {
|
||||
const model = getModel("zai", modelId);
|
||||
const res = await completeSimple(
|
||||
model,
|
||||
{
|
||||
@@ -26,10 +26,10 @@ async function expectModelReturnsAssistantText(modelId: "glm-4.7" | "glm-4.7-fla
|
||||
|
||||
describeLive("zai live", () => {
|
||||
it("returns assistant text", async () => {
|
||||
await expectModelReturnsAssistantText("glm-4.7");
|
||||
await expectModelReturnsAssistantText("glm-5");
|
||||
}, 20000);
|
||||
|
||||
it("glm-4.7-flashx returns assistant text", async () => {
|
||||
await expectModelReturnsAssistantText("glm-4.7-flashx");
|
||||
it("glm-4.7 returns assistant text", async () => {
|
||||
await expectModelReturnsAssistantText("glm-4.7");
|
||||
}, 20000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user