fix: add hosted minimax onboarding (#495, thanks @tobiasbischoff)

This commit is contained in:
Peter Steinberger
2026-01-09 13:38:51 +01:00
parent 897685a2de
commit dc6f22c2c5
6 changed files with 527 additions and 149 deletions

View File

@@ -2,6 +2,7 @@ import type { OAuthCredentials, OAuthProvider } from "@mariozechner/pi-ai";
import { resolveDefaultAgentDir } from "../agents/agent-scope.js";
import { upsertAuthProfile } from "../agents/auth-profiles.js";
import type { ClawdbotConfig } from "../config/config.js";
import type { ModelDefinitionConfig } from "../config/types.js";
const DEFAULT_MINIMAX_BASE_URL = "https://api.minimax.io/v1";
export const MINIMAX_HOSTED_MODEL_ID = "MiniMax-M2.1";
@@ -173,7 +174,7 @@ export function applyMinimaxHostedProviderConfig(
};
const providers = { ...cfg.models?.providers };
const hostedModel = {
const hostedModel: ModelDefinitionConfig = {
id: MINIMAX_HOSTED_MODEL_ID,
name: "MiniMax M2.1",
reasoning: false,