feat: Make model api key optional on API
Closed
CH
8mo ago+143+143+012345678901234567890123456789-10-10-01234567890123456789
why
what changed
test plan
Summary by cubic
Make the model API key optional in StagehandAPIClient.init() so sessions can start without providing a key. When a key is provided, behavior is unchanged and the header is sent.
- Bug Fixes
- Remove the init() error and make
modelApiKeyoptional. - Send
x-model-api-keyand include modelapiKeyonly when a key is present. - Add unit tests to verify both with-key and no-key flows.
- Remove the init() error and make