diff --git a/package.json b/package.json index d1fcab6..d63fcec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hyperbrowser/sdk", - "version": "1.0.1", + "version": "1.0.2", "description": "Node SDK for Hyperbrowser API", "author": "", "repository": { diff --git a/src/types/constants.ts b/src/types/constants.ts index a1906ed..40d1c78 100644 --- a/src/types/constants.ts +++ b/src/types/constants.ts @@ -74,6 +74,7 @@ export type ClaudeComputerUseReasoningEffort = "low" | "medium" | "high" | "xhig export type CuaLlm = | "computer-use-preview" | "gpt-6-astra" + | "gpt-6.1-sol" | "gpt-6-sol" | "gpt-6-luna" | "gpt-5.6-sol" diff --git a/tests/integration/client-http.test.ts b/tests/integration/client-http.test.ts index 06e8cb2..2aa3d5b 100644 --- a/tests/integration/client-http.test.ts +++ b/tests/integration/client-http.test.ts @@ -526,7 +526,7 @@ describe("client HTTP integration", () => { ]); }); - test("OpenAI CUA accepts GPT-6 Sol and Luna models", async () => { + test("OpenAI CUA accepts GPT-6.1 Sol, GPT-6 Sol, and Luna models", async () => { const server = await startServer(); servers.push(server); const client = new HyperbrowserClient({ @@ -534,6 +534,11 @@ describe("client HTTP integration", () => { baseUrl: server.baseUrl, }); + await client.agents.cua.start({ + task: "Complete the task", + llm: "gpt-6.1-sol", + reasoningEffort: "max", + }); await client.agents.cua.start({ task: "Complete the task", llm: "gpt-6-sol", @@ -546,6 +551,11 @@ describe("client HTTP integration", () => { }); expect(server.requests.map((request) => request.body)).toEqual([ + { + task: "Complete the task", + llm: "gpt-6.1-sol", + reasoningEffort: "max", + }, { task: "Complete the task", llm: "gpt-6-sol",