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

@@ -12,7 +12,7 @@ const SAMPLE_URL =
const LIVE =
isTruthyEnvValue(process.env.DEEPGRAM_LIVE_TEST) ||
isTruthyEnvValue(process.env.LIVE) ||
isTruthyEnvValue(process.env.CLAWDBOT_LIVE_TEST);
isTruthyEnvValue(process.env.OPENCLAW_LIVE_TEST);
const describeLive = LIVE && DEEPGRAM_KEY ? describe : describe.skip;

View File

@@ -3,7 +3,7 @@ import { complete } from "@mariozechner/pi-ai";
import { discoverAuthStorage, discoverModels } from "@mariozechner/pi-coding-agent";
import { getApiKeyForModel, requireApiKey } from "../../agents/model-auth.js";
import { ensureMoltbotModelsJson } from "../../agents/models-config.js";
import { ensureOpenClawModelsJson } from "../../agents/models-config.js";
import { minimaxUnderstandImage } from "../../agents/minimax-vlm.js";
import { coerceImageAssistantText } from "../../agents/tools/image-tool.helpers.js";
import type { ImageDescriptionRequest, ImageDescriptionResult } from "../types.js";
@@ -11,7 +11,7 @@ import type { ImageDescriptionRequest, ImageDescriptionResult } from "../types.j
export async function describeImageWithModel(
params: ImageDescriptionRequest,
): Promise<ImageDescriptionResult> {
await ensureMoltbotModelsJson(params.cfg, params.agentDir);
await ensureOpenClawModelsJson(params.cfg, params.agentDir);
const authStorage = discoverAuthStorage(params.agentDir);
const modelRegistry = discoverModels(authStorage, params.agentDir);
const model = modelRegistry.find(params.provider, params.model) as Model<Api> | null;