fix(core): add gpt-5.5 to CUA model support#2042
fix(core): add gpt-5.5 to CUA model support#2042BABTUNA wants to merge 1 commit intobrowserbase:mainfrom
Conversation
|
|
This PR is from an external contributor and must be approved by a stagehand team member with write access before CI can run. |
There was a problem hiding this comment.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant Client as User / Public API
participant Validator as Type Validator
participant Registry as AgentProvider Registry
participant Provider as OpenAI Provider
participant LLM as OpenAI API
Note over Client,LLM: Request flow for Model "openai/gpt-5.5"
Client->>Validator: Initialize Agent(model: "openai/gpt-5.5")
rect rgb(240, 240, 240)
Note right of Validator: Validates against AVAILABLE_CUA_MODELS
Validator->>Validator: NEW: Check "openai/gpt-5.5" inclusion
end
Validator-->>Client: Validation Success
Client->>Registry: getProvider("gpt-5.5")
rect rgb(240, 240, 240)
Note right of Registry: Lookup in modelToAgentProviderMap
Registry->>Registry: NEW: Map "gpt-5.5" to "openai"
end
Registry-->>Client: Return OpenAI Agent Provider
Client->>Provider: performTask(instruction)
Provider->>LLM: POST /chat/completions (model: "gpt-5.5")
alt Success
LLM-->>Provider: Tool Call / Response
Provider-->>Client: Task Result
else Unsupported Model Error
Note over LLM,Provider: Error if model is not yet active in API
LLM-->>Provider: 404/400 Error
Provider-->>Client: Provider Error
end
why
openai/gpt-5.5was missing from the CUA model allowlist/mapping, so CUA mode rejected it even thoughgpt-5.4was already supported.Closes #2041.
what changed
gpt-5.5->openaiinmodelToAgentProviderMapopenai/gpt-5.5toAVAILABLE_CUA_MODELStest plan
node node_modules/vitest/vitest.mjs run --config .tmp-vitest-public-api-config.mjstests/unit/public-api/llm-and-agents.test.tsnpm.cmd exec prettier -- --writeon touched filesSummary by cubic
Adds CUA support for
openai/gpt-5.5, which was missing and caused the model to be rejected in CUA mode.Maps
gpt-5.5toopenaiinmodelToAgentProviderMap, adds it toAVAILABLE_CUA_MODELS, and updates the public API test.Written for commit 05fac0b. Summary will update on new commits. Review in cubic