mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:21:26 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user