e2b@2.51.0
E2B 2.51.0 shifts default handling to the server by removing SDK-side request defaults, adopts v2 sandbox endpoints, and deprecates the secure option on Sandbox.create .
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
E2B release v2.51.0 introduces minor and patch changes focused on delegating default configurations and validation to the API backend. Key updates include: - Removal of client-side request defaults: SDK omissions for create/fork/connect timeout (previously 5m), fork count (previously 1), internet access allowance, memory retention during pause, and template build CPU/memory specs are no longer populated client-side; explicit values continue to be passed unchanged. - Adoption of v2 API endpoints: Sandbox.create and connect now hit POST /v2/sandboxes and POST /v2/sandboxes/{id}/connect . These endpoints default timeout to 5 minutes and always secure envd access. - Deprecation: The secure option in Sandbox.create is deprecated and ignored because all sandboxes are now secured by default. - Validation update: Client-side validation for the fork count argument has been removed; validation and rejection of invalid counts are now executed directly by the API.
可执行摘要
E2B version 2.51.0 removes SDK-side defaults for timeout, fork count, internet access, memory retention on pause, and template build CPU/memory, letting the backend handle defaults. Sandbox create and connect migrate to v2 endpoints ( POST /v2/sandboxes and POST /v2/sandboxes/{id}/connect ), which enforce secured envd access and default timeouts. The secure parameter in Sandbox.create is deprecated and ignored, and…
- Agent 实用度
- 94/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Remove references to the deprecated secure option in Sandbox.create calls.
- Verify that workflows relying on omitted parameters properly accommodate the API-side default behaviors for timeouts, fork counts, internet access, and pause states.
- Handle API-level validation errors for invalid fork counts, as client-side pre-validation is removed.