Repository navigation
API spec update and new CPU field for sandbox create/info - #39
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The endpoint inherits a five-second read timeout despite server waits of up to 119 seconds, causing premature ReadTimeout errors unless both synchronous and asynchronous clients use a timeout that accommodates the wait.
1 open issue
What changed in this PR
Refreshes the generated API clients from production specs and exposes explicit CPU allocation through the high-level sandbox SDK.
Changes:
- Adds
cputo synchronous and asynchronous sandbox creation andSandboxInfo. - Regenerates API models, endpoints, and exports, including filesystem copy and process waiting.
- Preserves server-provided error fields and updates CPU tests, webhook parity exclusions, and API-key expiration.
| File | Description |
|---|---|
tests/sandbox/test_parity.py |
Marks process webhook fields as unsupported. |
tests/sandbox/test_info.py |
Checks CPU mapping in sandbox information. |
tests/sandbox/test_client.py |
Verifies CPU forwarding and updates fixtures. |
tests/client/test_e2e.py |
Sets expiration for test API keys. |
scripts/apigen/specs/sandbox.yml |
Updates sandbox endpoints and schemas. |
baseten/sandbox/_info.py |
Exposes CPU allocation in SandboxInfo. |
baseten/sandbox/_errors.py |
Excludes unset fields from error bodies. |
baseten/sandbox/_client.py |
Accepts and forwards CPU allocation. |
baseten/client/sandboxapi/_models.py |
Regenerates sandbox request and response models. |
baseten/client/sandboxapi/_client.py |
Adds copy and process-wait methods; updates upgrade errors. |
baseten/client/sandboxapi/__init__.py |
Exports new sandbox models. |
baseten/client/managementapi/_models.py |
Refreshes management schemas, including sandbox CPU fields. |
baseten/client/managementapi/_client.py |
Refreshes management endpoints and parameter handling. |
baseten/client/managementapi/__init__.py |
Updates generated management model exports. |
Review effort: Balanced
cploujoux
approved these changes
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🚀 What
cputo sandbox create (sync and async) andSandboxInfo💻 How
uv run poe generate-api --update-specsbodynow excludes fields the server didn't sendcallbackUrl/callbackSecretas not supported yet🔬 Testing
cputo the existing create and info tests