diff --git a/src/consts.ts b/src/consts.ts index 6cfdb16..0e7b6ee 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -1,3 +1,4 @@ export const NEW_API_BASE_URL = "https://recoup-api.vercel.app"; export const RECOUP_API_KEY = process.env.RECOUP_API_KEY; -export const CODING_AGENT_ACCOUNT_ID = "04e3aba9-c130-4fb8-8b92-34e95d43e66b"; \ No newline at end of file +export const CODING_AGENT_ACCOUNT_ID = "04e3aba9-c130-4fb8-8b92-34e95d43e66b"; +export const CODING_AGENT_MODEL = "moonshotai/kimi-k2.5"; \ No newline at end of file diff --git a/src/sandboxes/setupOpenClaw.ts b/src/sandboxes/setupOpenClaw.ts index dc95b59..500db8e 100644 --- a/src/sandboxes/setupOpenClaw.ts +++ b/src/sandboxes/setupOpenClaw.ts @@ -1,6 +1,7 @@ import type { Sandbox } from "@vercel/sandbox"; import { logger } from "@trigger.dev/sdk/v3"; import { onboardOpenClaw } from "./onboardOpenClaw"; +import { CODING_AGENT_MODEL } from "../consts"; /** * Ensures OpenClaw is onboarded, seeds env vars into the config, @@ -44,6 +45,8 @@ export async function setupOpenClaw( ${githubToken ? `c.env.GITHUB_TOKEN = '${githubToken}';` : ""} c.tools = c.tools || {}; c.tools.profile = 'coding'; + c.model = 'vercel-ai-gateway/${CODING_AGENT_MODEL}'; + c.defaultModel = 'vercel-ai-gateway/${CODING_AGENT_MODEL}'; fs.writeFileSync(p, JSON.stringify(c, null, 2)); "`, ],