From 9c8ecc4ba9bed11ac4166963b3b75b6717abef91 Mon Sep 17 00:00:00 2001 From: Shri Date: Tue, 10 Nov 2026 21:17:42 +0000 Subject: [PATCH 1/2] Add gemini-4-carbon to Gemini Computer Use --- package.json | 2 +- src/types/constants.ts | 3 ++- tests/integration/client-http.test.ts | 18 +++++++++++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 10a6587..d6dce09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hyperbrowser/sdk", - "version": "1.5.1", + "version": "1.5.2", "description": "Node SDK for Hyperbrowser API", "author": "", "repository": { diff --git a/src/types/constants.ts b/src/types/constants.ts index 515eade..4e5ff16 100644 --- a/src/types/constants.ts +++ b/src/types/constants.ts @@ -131,6 +131,7 @@ export type HyperAgentLlm = | "gemini-3-flash-preview"; export type GeminiComputerUseLlm = + | "gemini-4-carbon" | "gemini-4-argon" | "gemini-3.8-flash" | "gemini-3.7-flash" @@ -140,7 +141,7 @@ export type GeminiComputerUseLlm = | "gemini-3-flash-preview" | "gemini-2.5-computer-use-preview-10-2025"; -// Gemini 4 Argon, 3.8 Flash, and 3.7 Flash do not support "minimal". +// Gemini 4 Carbon, Gemini 4 Argon, 3.8 Flash, and 3.7 Flash do not support "minimal". export type GeminiComputerUseReasoningEffort = "minimal" | "low" | "medium" | "high"; export type GrokComputerUseLlm = "grok-4.7" | "grok-4.6" | "grok-4.5"; diff --git a/tests/integration/client-http.test.ts b/tests/integration/client-http.test.ts index bb9f295..a07a20e 100644 --- a/tests/integration/client-http.test.ts +++ b/tests/integration/client-http.test.ts @@ -407,7 +407,7 @@ describe("client HTTP integration", () => { ]); }); - test("Gemini Computer Use forwards Gemini 4 Argon and reasoning effort on start", async () => { + test("Gemini Computer Use forwards Gemini 4 Carbon, Gemini 4 Argon, and reasoning effort on start", async () => { const server = await startServer(); servers.push(server); const client = new HyperbrowserClient({ @@ -422,6 +422,11 @@ describe("client HTTP integration", () => { useCustomApiKeys: true, apiKeys: { google: "google-key" }, }); + await client.agents.geminiComputerUse.start({ + task: "Complete the task", + llm: "gemini-4-carbon", + reasoningEffort: "low", + }); await client.agents.geminiComputerUse.start({ task: "Complete the task", llm: "gemini-3.6-flash", @@ -447,6 +452,17 @@ describe("client HTTP integration", () => { apiKeys: { google: "google-key" }, }, }, + { + method: "POST", + url: "/api/task/gemini-computer-use", + apiKey: "test-api-key", + contentType: "application/json", + body: { + task: "Complete the task", + llm: "gemini-4-carbon", + reasoningEffort: "low", + }, + }, { method: "POST", url: "/api/task/gemini-computer-use", From 607463df3dd8d8df95b4a0e7876c1166cc71f9f6 Mon Sep 17 00:00:00 2001 From: Shri Date: Tue, 10 Nov 2026 21:43:31 +0000 Subject: [PATCH 2/2] Revert version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d6dce09..10a6587 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hyperbrowser/sdk", - "version": "1.5.2", + "version": "1.5.1", "description": "Node SDK for Hyperbrowser API", "author": "", "repository": {