You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** API Client for interfacing with the Anthropic Bedrock API. */
@@ -30,6 +31,7 @@ export class AnthropicBedrock extends BaseAnthropic {
30
31
awsAccessKey: string|null;
31
32
awsRegion: string;
32
33
awsSessionToken: string|null;
34
+
skipAuth: boolean=false;
33
35
34
36
/**
35
37
* API Client for interfacing with the Anthropic Bedrock API.
@@ -46,6 +48,7 @@ export class AnthropicBedrock extends BaseAnthropic {
46
48
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
47
49
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
48
50
* @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
51
+
* @param {boolean} [opts.skipAuth=false] - Skip authentication for this request. This is useful if you have an internal proxy that handles authentication for you.
49
52
*/
50
53
constructor({
51
54
awsRegion =readEnv('AWS_REGION')??'us-east-1',
@@ -64,6 +67,7 @@ export class AnthropicBedrock extends BaseAnthropic {
0 commit comments