Skip to content

add custom baseurl for cua - #116

Merged
NikhilShahi merged 2 commits into
mainfrom
cua-custom-baseurls
Aug 16, 2026
Merged

add custom baseurl for cua#116
NikhilShahi merged 2 commits into
mainfrom
cua-custom-baseurls

Conversation

@NikhilShahi

@NikhilShahi NikhilShahi commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Changes

Validation

  • ruff check
  • pytest

Note

Low Risk
Additive SDK fields and serialization only; no changes to auth or existing required CUA parameters.

Overview
Adds optional custom provider base URLs when starting OpenAI CUA agent tasks, so callers can point at proxies or Azure-style endpoints (e.g. https://example.openai.azure.com/openai/v1/) alongside existing custom API keys.

Introduces CuaBaseUrls (Pydantic model and TypedDict) with an optional openai field, wires it into StartCuaTaskParams as base_urls / baseUrls, and re-exports the type from the public models and types packages. Bumps the package version to 1.2.3.

Adds a request-serialization test ensuring dict and model inputs match and emit camelCase baseUrls, plus typecheck fixtures for sync and async client.agents.cua.start.

Reviewed by Cursor Bugbot for commit a54328a. Bugbot is set up for automated code reviews on this repo. Configure here.

@NikhilShahi
NikhilShahi merged commit 6566700 into main Aug 16, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant