Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Make default compute spec clearer in docs
Vasek Mlejnskye5b1d5e136f7
diff --git a/apps/docs/src/app/pricing/page.mdx b/apps/docs/src/app/pricing/page.mdxindex b1f2e4d5d..2ebcdf3b0 100644--- a/apps/docs/src/app/pricing/page.mdx+++ b/apps/docs/src/app/pricing/page.mdx@@ -55,6 +55,8 @@ We charge per second of a running sandbox.Pro customers can customize the sandbox with **any combination** of the CPU and RAM based on the following tables.<Note>+<b>By default your sandbox has 2 vCPU and 512 MiB RAM.</b>+To customize your sandbox compute, you need to build your custom sandbox template using the [E2B CLI](/cli/installation).Run [`e2b template build`](/cli/commands#template-build) and specify the `--cpu-count` and `--memory-mb` options.diff --git a/apps/docs/src/app/sandbox/compute/page.mdx b/apps/docs/src/app/sandbox/compute/page.mdxindex cbe39c306..92f563fef 100644--- a/apps/docs/src/app/sandbox/compute/page.mdx+++ b/apps/docs/src/app/sandbox/compute/page.mdx@@ -6,10 +6,12 @@ Pro customers can customize the sandbox with **any combination** of the CPU andRead a dedicated page to [learn more about pricing](/pricing).<Note>+<b>By default your sandbox has 2 vCPU and 512 MiB RAM.</b>+To customize your sandbox compute, you need to build your custom sandbox template using the [E2B CLI](/cli/installation).Run [`e2b template build`](/cli/commands#template-build) and specify the `--cpu-count` and `--memory-mb` options.-For example this custom build gives your sandbox 8 vCPU and 4GiB of RAM+For example, this custom build command gives your sandbox 8 vCPU and 4GiB of RAM```she2b template build --cput-count 8 --memory-mb 4096```diff --git a/apps/docs/src/components/SandboxSpec/CPUSpec.tsx b/apps/docs/src/components/SandboxSpec/CPUSpec.tsxindex 3fc547f64..43b22197b 100644--- a/apps/docs/src/components/SandboxSpec/CPUSpec.tsx+++ b/apps/docs/src/components/SandboxSpec/CPUSpec.tsx@@ -1,5 +1,6 @@export interface CPUValue {value: number+ isDefault?: booleanplan: 'Hobby / Pro' | 'Pro'}@@ -23,17 +24,20 @@ function CPUSpec({</div><div className="flex flex-col items-start justify-start w-full">- {cpuVals.map((val) => (+ {cpuVals.map((cpuVal) => (<div- key={val.value}+ key={cpuVal.value}className="flex items-center justify-between w-full p-2 border-b border-white/10"><div className="flex items-center justify-start space-between w-full w-[300px]">- <span className="text-sm flex-1 font-mono text-left">{val.value}</span>- <span className="text-sm font-mono text-left w-[150px]">{val.plan}</span>+ <div className="flex flex-1 items-center justify-start space-between">+ <span className="text-sm font-mono text-left">{cpuVal.value}</span>+ {cpuVal.isDefault && <span className="text-sm font-mono font-semibold text-green-500 text-left ml-1">[default]</span>}+ </div>+ <span className="text-sm font-mono text-left w-[150px]">{cpuVal.plan}</span></div>- <span className="text-sm font-mono text-right">${(val.value * cpuPrice).toFixed(6)}/s</span>+ <span className="text-sm font-mono text-right">${(cpuVal.value * cpuPrice).toFixed(6)}/s</span></div>))}</div>diff --git a/apps/docs/src/components/SandboxSpec/RAMSpec.tsx b/apps/docs/src/components/SandboxSpec/RAMSpec.tsxindex 48dbc7178..9c4161431 100644--- a/apps/docs/src/components/SandboxSpec/RAMSpec.tsx+++ b/apps/docs/src/components/SandboxSpec/RAMSpec.tsx@@ -1,5 +1,6 @@export interface Props {ramPrice: number+ isDefault?: boolean}function RAMSpec({@@ -22,7 +23,10 @@ function RAMSpec({>{/* Hobby */}<div className="flex items-center justify-end py-2 pl-2">- <span className="text-sm flex-1 font-mono text-left w-[350px]">512 MiB</span>+ <div className="flex flex-1 items-center justify-start space-between w-[350px]">+ <span className="text-sm font-mono text-left">512 MiB</span>+ <span className="text-sm font-mono font-semibold text-green-500 text-left ml-1">[default]</span>+ </div><span className="text-sm font-mono text-left w-[95px]">Hobby / Pro</span></div></div>diff --git a/apps/docs/src/components/SandboxSpec/index.tsx b/apps/docs/src/components/SandboxSpec/index.tsxindex 1efe53af1..bbc0dd430 100644--- a/apps/docs/src/components/SandboxSpec/index.tsx+++ b/apps/docs/src/components/SandboxSpec/index.tsx@@ -10,6 +10,7 @@ const cpuVals: CPUValue[] = [},{value: 2,+ isDefault: true,plan: 'Hobby / Pro',},{