Skip to content

Commit 5cf0d46

Browse files
feat(api): manual updates
1 parent 586fc14 commit 5cf0d46

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 7
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-ed52466945f2f8dfd3814a29e948d7bf30af7b76a7a7689079c03b8baf64e26f.yml
33
openapi_spec_hash: 5d57aaf2362b0d882372dbf76477ba23
4-
config_hash: 989ddfee371586e9156b4d484ec0a6cc
4+
config_hash: 8ec9eaf59304f664cf79f73de1488671

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ StagehandClient client = StagehandOkHttpClient.builder()
104104

105105
See this table for the available options:
106106

107-
| Setter | System property | Environment variable | Required | Default value |
108-
| ---------------------- | -------------------------------- | ------------------------ | -------- | -------------------------------------------- |
109-
| `browserbaseApiKey` | `stagehand.browserbaseApiKey` | `BROWSERBASE_API_KEY` | true | - |
110-
| `browserbaseProjectId` | `stagehand.browserbaseProjectId` | `BROWSERBASE_PROJECT_ID` | true | - |
111-
| `modelApiKey` | `stagehand.modelApiKey` | `MODEL_API_KEY` | true | - |
112-
| `baseUrl` | `stagehand.baseUrl` | `STAGEHAND_BASE_URL` | true | `"https://api.stagehand.browserbase.com/v1"` |
107+
| Setter | System property | Environment variable | Required | Default value |
108+
| ---------------------- | -------------------------------- | ------------------------ | -------- | ----------------------------------------- |
109+
| `browserbaseApiKey` | `stagehand.browserbaseApiKey` | `BROWSERBASE_API_KEY` | true | - |
110+
| `browserbaseProjectId` | `stagehand.browserbaseProjectId` | `BROWSERBASE_PROJECT_ID` | true | - |
111+
| `modelApiKey` | `stagehand.modelApiKey` | `MODEL_API_KEY` | true | - |
112+
| `baseUrl` | `stagehand.baseUrl` | `STAGEHAND_BASE_URL` | true | `"https://api.stagehand.browserbase.com"` |
113113

114114
System properties take precedence over environment variables.
115115

stagehand-java-client-okhttp/src/main/kotlin/com/browserbase/api/client/okhttp/StagehandOkHttpClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class StagehandOkHttpClient private constructor() {
157157
/**
158158
* The base URL to use for every request.
159159
*
160-
* Defaults to the production environment: `https://api.stagehand.browserbase.com/v1`.
160+
* Defaults to the production environment: `https://api.stagehand.browserbase.com`.
161161
*/
162162
fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) }
163163

stagehand-java-client-okhttp/src/main/kotlin/com/browserbase/api/client/okhttp/StagehandOkHttpClientAsync.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class StagehandOkHttpClientAsync private constructor() {
157157
/**
158158
* The base URL to use for every request.
159159
*
160-
* Defaults to the production environment: `https://api.stagehand.browserbase.com/v1`.
160+
* Defaults to the production environment: `https://api.stagehand.browserbase.com`.
161161
*/
162162
fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) }
163163

stagehand-java-core/src/main/kotlin/com/browserbase/api/core/ClientOptions.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ private constructor(
124124
/**
125125
* The base URL to use for every request.
126126
*
127-
* Defaults to the production environment: `https://api.stagehand.browserbase.com/v1`.
127+
* Defaults to the production environment: `https://api.stagehand.browserbase.com`.
128128
*/
129129
fun baseUrl(): String = baseUrl ?: PRODUCTION_URL
130130

131131
fun toBuilder() = Builder().from(this)
132132

133133
companion object {
134134

135-
const val PRODUCTION_URL = "https://api.stagehand.browserbase.com/v1"
135+
const val PRODUCTION_URL = "https://api.stagehand.browserbase.com"
136136

137137
/**
138138
* Returns a mutable builder for constructing an instance of [ClientOptions].
@@ -260,7 +260,7 @@ private constructor(
260260
/**
261261
* The base URL to use for every request.
262262
*
263-
* Defaults to the production environment: `https://api.stagehand.browserbase.com/v1`.
263+
* Defaults to the production environment: `https://api.stagehand.browserbase.com`.
264264
*/
265265
fun baseUrl(baseUrl: String?) = apply { this.baseUrl = baseUrl }
266266

@@ -411,12 +411,12 @@ private constructor(
411411
*
412412
* See this table for the available options:
413413
*
414-
* |Setter |System property |Environment variable |Required|Default value |
415-
* |----------------------|--------------------------------|------------------------|--------|--------------------------------------------|
416-
* |`browserbaseApiKey` |`stagehand.browserbaseApiKey` |`BROWSERBASE_API_KEY` |true |- |
417-
* |`browserbaseProjectId`|`stagehand.browserbaseProjectId`|`BROWSERBASE_PROJECT_ID`|true |- |
418-
* |`modelApiKey` |`stagehand.modelApiKey` |`MODEL_API_KEY` |true |- |
419-
* |`baseUrl` |`stagehand.baseUrl` |`STAGEHAND_BASE_URL` |true |`"https://api.stagehand.browserbase.com/v1"`|
414+
* |Setter |System property |Environment variable |Required|Default value |
415+
* |----------------------|--------------------------------|------------------------|--------|-----------------------------------------|
416+
* |`browserbaseApiKey` |`stagehand.browserbaseApiKey` |`BROWSERBASE_API_KEY` |true |- |
417+
* |`browserbaseProjectId`|`stagehand.browserbaseProjectId`|`BROWSERBASE_PROJECT_ID`|true |- |
418+
* |`modelApiKey` |`stagehand.modelApiKey` |`MODEL_API_KEY` |true |- |
419+
* |`baseUrl` |`stagehand.baseUrl` |`STAGEHAND_BASE_URL` |true |`"https://api.stagehand.browserbase.com"`|
420420
*
421421
* System properties take precedence over environment variables.
422422
*/

0 commit comments

Comments
 (0)