Skip to content

Commit f2d0690

Browse files
feat(api): manual updates
1 parent 48825ea commit f2d0690

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 7
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-3607b588cab78536eb7de9f6acffe8ddda1d34aebe5910c2147421aa6c16bf22.yml
3-
openapi_spec_hash: fb507e8d38b4978a5717fbb144197868
4-
config_hash: 9d54b9fd851ec7ac25b85f579be64425
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-2c88c6d890406ff8a5f1bca692264fb9af4bc4fe64df0986e06d3386fc6d6fcb.yml
3+
openapi_spec_hash: dc6ea17f8152708dc0a390c7f86b1a5d
4+
config_hash: b01f15c540ab2c92808c2bba96368631

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,17 @@ class StagehandOkHttpClient private constructor() {
195195
*/
196196
fun maxRetries(maxRetries: Int) = apply { clientOptions.maxRetries(maxRetries) }
197197

198+
/** Your [Browserbase API Key](https://www.browserbase.com/settings) */
198199
fun browserbaseApiKey(browserbaseApiKey: String) = apply {
199200
clientOptions.browserbaseApiKey(browserbaseApiKey)
200201
}
201202

203+
/** Your [Browserbase Project ID](https://www.browserbase.com/settings) */
202204
fun browserbaseProjectId(browserbaseProjectId: String) = apply {
203205
clientOptions.browserbaseProjectId(browserbaseProjectId)
204206
}
205207

208+
/** Your LLM provider API key (e.g. OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.) */
206209
fun modelApiKey(modelApiKey: String) = apply { clientOptions.modelApiKey(modelApiKey) }
207210

208211
fun headers(headers: Headers) = apply { clientOptions.headers(headers) }

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,17 @@ class StagehandOkHttpClientAsync private constructor() {
195195
*/
196196
fun maxRetries(maxRetries: Int) = apply { clientOptions.maxRetries(maxRetries) }
197197

198+
/** Your [Browserbase API Key](https://www.browserbase.com/settings) */
198199
fun browserbaseApiKey(browserbaseApiKey: String) = apply {
199200
clientOptions.browserbaseApiKey(browserbaseApiKey)
200201
}
201202

203+
/** Your [Browserbase Project ID](https://www.browserbase.com/settings) */
202204
fun browserbaseProjectId(browserbaseProjectId: String) = apply {
203205
clientOptions.browserbaseProjectId(browserbaseProjectId)
204206
}
205207

208+
/** Your LLM provider API key (e.g. OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.) */
206209
fun modelApiKey(modelApiKey: String) = apply { clientOptions.modelApiKey(modelApiKey) }
207210

208211
fun headers(headers: Headers) = apply { clientOptions.headers(headers) }

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,11 @@ private constructor(
9393
* Defaults to 2.
9494
*/
9595
@get:JvmName("maxRetries") val maxRetries: Int,
96+
/** Your [Browserbase API Key](https://www.browserbase.com/settings) */
9697
@get:JvmName("browserbaseApiKey") val browserbaseApiKey: String,
98+
/** Your [Browserbase Project ID](https://www.browserbase.com/settings) */
9799
@get:JvmName("browserbaseProjectId") val browserbaseProjectId: String,
100+
/** Your LLM provider API key (e.g. OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.) */
98101
@get:JvmName("modelApiKey") val modelApiKey: String,
99102
) {
100103

@@ -278,14 +281,17 @@ private constructor(
278281
*/
279282
fun maxRetries(maxRetries: Int) = apply { this.maxRetries = maxRetries }
280283

284+
/** Your [Browserbase API Key](https://www.browserbase.com/settings) */
281285
fun browserbaseApiKey(browserbaseApiKey: String) = apply {
282286
this.browserbaseApiKey = browserbaseApiKey
283287
}
284288

289+
/** Your [Browserbase Project ID](https://www.browserbase.com/settings) */
285290
fun browserbaseProjectId(browserbaseProjectId: String) = apply {
286291
this.browserbaseProjectId = browserbaseProjectId
287292
}
288293

294+
/** Your LLM provider API key (e.g. OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.) */
289295
fun modelApiKey(modelApiKey: String) = apply { this.modelApiKey = modelApiKey }
290296

291297
fun headers(headers: Headers) = apply {

0 commit comments

Comments
 (0)