Repository navigation
Commit 8aa987e
authored
Accept 3GiB and 6GiB for --video-memory (#311)
## Summary
The API now names the GPU tiers by their actual video memory: `3GiB`
(default; 4 vCPU, 6GiB memory) and `6GiB` (8 vCPU, 12GiB memory). `2GiB`
and `4GiB` are still accepted as deprecated aliases. The CLI validates
`--video-memory` before it sends the request, so it currently rejects
the new values.
- Bump `kernel-go-sdk` from v0.138.0 to v0.141.0, which adds
`BrowserVideoMemory3GiB` and `BrowserVideoMemory6GiB`.
- `--video-memory` accepts `3GiB` and `6GiB`. The help text and
validation error list only those two values.
- `2GiB` and `4GiB` are still accepted and sent as typed, so existing
scripts keep working and the API can still see how often the old aliases
are used.
## Testing
`go vet` and `go test ./...` pass. The
`TestBrowsersCreate_WithVideoMemory` test covers the new values and the
alias passthrough. I didn't create a GPU browser against the API.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> CLI flag validation and SDK bump for GPU VRAM sizing;
backward-compatible aliases preserve existing scripts.
>
> **Overview**
> Aligns GPU **`--video-memory`** with the API’s new tier names
**`3GiB`** (default) and **`6GiB`**, and bumps **`kernel-go-sdk`** to
**v0.141.0** for the matching types.
>
> Validation now advertises only **`3GiB`** / **`6GiB`** in help and
error text, while still accepting **`2GiB`** and **`4GiB`** as
deprecated aliases that are forwarded unchanged on create requests.
**`TestBrowsersCreate_WithVideoMemory`** covers the new canonical values
and alias passthrough.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
292b131. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: yummybomb <19238148+yummybomb@users.noreply.github.com>1 parent 09d8206 commit 8aa987e
4 files changed
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
212 | | - | |
| 218 | + | |
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
216 | 222 | | |
217 | | - | |
| 223 | + | |
218 | 224 | | |
219 | 225 | | |
220 | 226 | | |
| |||
3560 | 3566 | | |
3561 | 3567 | | |
3562 | 3568 | | |
3563 | | - | |
| 3569 | + | |
3564 | 3570 | | |
3565 | 3571 | | |
3566 | 3572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | | - | |
| 1051 | + | |
1052 | 1052 | | |
1053 | | - | |
| 1053 | + | |
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | | - | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
1058 | 1063 | | |
1059 | | - | |
| 1064 | + | |
1060 | 1065 | | |
1061 | 1066 | | |
1062 | 1067 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments