Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

332 B
Raw Blame
import { requireExecutionApproval } from './executionPolicy';
import { remoteSandbox } from './sandbox';

export const runModelCode = async (input: { modelGeneratedCode: string }) => {
  await requireExecutionApproval(input.modelGeneratedCode);
  return remoteSandbox.execute({ code: input.modelGeneratedCode, network: false });
};