mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 16:14:58 +00:00
feat(models): support minimax highspeed across onboarding
This commit is contained in:
@@ -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