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:
Tars
2026-03-08 04:30:53 +08:00
committed by GitHub
parent e554c59aac
commit dab0e97c22
15 changed files with 246 additions and 23 deletions

View File

@@ -6,6 +6,14 @@ type MinimaxBaseResp = {
status_msg?: string;
};
export function isMinimaxVlmProvider(provider: string): boolean {
return provider === "minimax" || provider === "minimax-portal";
}
export function isMinimaxVlmModel(provider: string, modelId: string): boolean {
return isMinimaxVlmProvider(provider) && modelId.trim() === "MiniMax-VL-01";
}
function coerceApiHost(params: {
apiHost?: string;
modelBaseUrl?: string;