Skip to content

Commit d3eb44c

Browse files
feat: Move GPU browsers to L40S-3Q and 6Q vGPU profiles
Stainless-Generated-From: e54493d9ec12ea256ced62f8728b1d65ef548882
1 parent 01c7767 commit d3eb44c

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

‎src/kernel/resources/browsers/browsers.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ def create(
315315
creation.
316316
317317
video_memory: Video memory (VRAM) for a GPU browser session. Requires gpu=true. Defaults to
318-
2GiB, which comes with 4 vCPU and 6GiB memory. 4GiB comes with 8 vCPU and 12GiB
319-
memory.
318+
3GiB, which comes with 4 vCPU and 6GiB memory. 6GiB comes with 8 vCPU and 12GiB
319+
memory. 2GiB and 4GiB are deprecated aliases for 3GiB and 6GiB.
320320
321321
viewport: Initial browser window size in pixels with optional refresh rate. If omitted,
322322
image defaults apply (1920x1080@25). For GPU images, the default is
@@ -1176,8 +1176,8 @@ async def create(
11761176
creation.
11771177
11781178
video_memory: Video memory (VRAM) for a GPU browser session. Requires gpu=true. Defaults to
1179-
2GiB, which comes with 4 vCPU and 6GiB memory. 4GiB comes with 8 vCPU and 12GiB
1180-
memory.
1179+
3GiB, which comes with 4 vCPU and 6GiB memory. 6GiB comes with 8 vCPU and 12GiB
1180+
memory. 2GiB and 4GiB are deprecated aliases for 3GiB and 6GiB.
11811181
11821182
viewport: Initial browser window size in pixels with optional refresh rate. If omitted,
11831183
image defaults apply (1920x1080@25). For GPU images, the default is

‎src/kernel/types/browser_create_params.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,9 @@ class BrowserCreateParams(TypedDict, total=False):
182182
video_memory: BrowserVideoMemory
183183
"""Video memory (VRAM) for a GPU browser session.
184184
185-
Requires gpu=true. Defaults to 2GiB, which comes with 4 vCPU and 6GiB memory.
186-
4GiB comes with 8 vCPU and 12GiB memory.
185+
Requires gpu=true. Defaults to 3GiB, which comes with 4 vCPU and 6GiB memory.
186+
6GiB comes with 8 vCPU and 12GiB memory. 2GiB and 4GiB are deprecated aliases
187+
for 3GiB and 6GiB.
187188
"""
188189

189190
viewport: BrowserViewport

‎src/kernel/types/browser_video_memory.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
__all__ = ["BrowserVideoMemory"]
66

7-
BrowserVideoMemory: TypeAlias = Literal["2GiB", "4GiB"]
7+
BrowserVideoMemory: TypeAlias = Literal["3GiB", "6GiB", "2GiB", "4GiB"]

‎tests/api_resources/test_browsers.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None:
120120
"name": "x",
121121
}
122122
],
123-
video_memory="2GiB",
123+
video_memory="3GiB",
124124
viewport={
125125
"height": 800,
126126
"width": 1280,
@@ -732,7 +732,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) ->
732732
"name": "x",
733733
}
734734
],
735-
video_memory="2GiB",
735+
video_memory="3GiB",
736736
viewport={
737737
"height": 800,
738738
"width": 1280,

0 commit comments

Comments
 (0)