mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 05:31:23 +00:00
fix(models): support minimax-portal coding plan vlm routing for image tool (openclaw#33953)
Verified: - pnpm install --frozen-lockfile - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: tars90percent <252094836+tars90percent@users.noreply.github.com>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
AUTO_AUDIO_KEY_PROVIDERS,
|
||||
AUTO_IMAGE_KEY_PROVIDERS,
|
||||
AUTO_VIDEO_KEY_PROVIDERS,
|
||||
DEFAULT_AUDIO_MODELS,
|
||||
DEFAULT_IMAGE_MODELS,
|
||||
} from "./defaults.js";
|
||||
|
||||
describe("DEFAULT_AUDIO_MODELS", () => {
|
||||
@@ -22,3 +24,15 @@ describe("AUTO_VIDEO_KEY_PROVIDERS", () => {
|
||||
expect(AUTO_VIDEO_KEY_PROVIDERS).toContain("moonshot");
|
||||
});
|
||||
});
|
||||
|
||||
describe("AUTO_IMAGE_KEY_PROVIDERS", () => {
|
||||
it("includes minimax-portal auto key resolution", () => {
|
||||
expect(AUTO_IMAGE_KEY_PROVIDERS).toContain("minimax-portal");
|
||||
});
|
||||
});
|
||||
|
||||
describe("DEFAULT_IMAGE_MODELS", () => {
|
||||
it("includes the MiniMax portal vision default", () => {
|
||||
expect(DEFAULT_IMAGE_MODELS["minimax-portal"]).toBe("MiniMax-VL-01");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user