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

This commit is contained in:
Peter Steinberger committed 2026-01-09 13:40:01 +01:00
1 parent 897685a2de
commit dc6f22c2c5
6 files changed
+527 -149

No files matched your search

+2 -1
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,