refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

@@ -1,4 +1,4 @@
import type { MoltbotConfig } from "../config/config.js";
import type { OpenClawConfig } from "../config/config.js";
import {
buildMinimaxApiModelDefinition,
buildMinimaxModelDefinition,
@@ -12,7 +12,7 @@ import {
MINIMAX_LM_STUDIO_COST,
} from "./onboard-auth.models.js";
export function applyMinimaxProviderConfig(cfg: MoltbotConfig): MoltbotConfig {
export function applyMinimaxProviderConfig(cfg: OpenClawConfig): OpenClawConfig {
const models = { ...cfg.agents?.defaults?.models };
models["anthropic/claude-opus-4-5"] = {
...models["anthropic/claude-opus-4-5"],
@@ -59,9 +59,9 @@ export function applyMinimaxProviderConfig(cfg: MoltbotConfig): MoltbotConfig {
}
export function applyMinimaxHostedProviderConfig(
cfg: MoltbotConfig,
cfg: OpenClawConfig,
params?: { baseUrl?: string },
): MoltbotConfig {
): OpenClawConfig {
const models = { ...cfg.agents?.defaults?.models };
models[MINIMAX_HOSTED_MODEL_REF] = {
...models[MINIMAX_HOSTED_MODEL_REF],
@@ -103,7 +103,7 @@ export function applyMinimaxHostedProviderConfig(
};
}
export function applyMinimaxConfig(cfg: MoltbotConfig): MoltbotConfig {
export function applyMinimaxConfig(cfg: OpenClawConfig): OpenClawConfig {
const next = applyMinimaxProviderConfig(cfg);
return {
...next,
@@ -126,9 +126,9 @@ export function applyMinimaxConfig(cfg: MoltbotConfig): MoltbotConfig {
}
export function applyMinimaxHostedConfig(
cfg: MoltbotConfig,
cfg: OpenClawConfig,
params?: { baseUrl?: string },
): MoltbotConfig {
): OpenClawConfig {
const next = applyMinimaxHostedProviderConfig(cfg, params);
return {
...next,
@@ -147,9 +147,9 @@ export function applyMinimaxHostedConfig(
// MiniMax Anthropic-compatible API (platform.minimax.io/anthropic)
export function applyMinimaxApiProviderConfig(
cfg: MoltbotConfig,
cfg: OpenClawConfig,
modelId: string = "MiniMax-M2.1",
): MoltbotConfig {
): OpenClawConfig {
const providers = { ...cfg.models?.providers };
const existingProvider = providers.minimax;
const existingModels = Array.isArray(existingProvider?.models) ? existingProvider.models : [];
@@ -190,9 +190,9 @@ export function applyMinimaxApiProviderConfig(
}
export function applyMinimaxApiConfig(
cfg: MoltbotConfig,
cfg: OpenClawConfig,
modelId: string = "MiniMax-M2.1",
): MoltbotConfig {
): OpenClawConfig {
const next = applyMinimaxApiProviderConfig(cfg, modelId);
return {
...next,