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
feat(vertex): add AuthClient interface support for improved auth flexibility
- Add authClient option to ClientOptions interface
- Support both authClient and googleAuth for backward compatibility
- Update documentation with examples for different auth methods
- Add support for Impersonated credentials via AuthClient interface
Addresses CE-673
Copy file name to clipboardExpand all lines: packages/vertex-sdk/README.md
+60Lines changed: 60 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,66 @@ main();
41
41
42
42
For more details on how to use the SDK, see the [README.md for the main Anthropic SDK](https://github.com/anthropics/anthropic-sdk-typescript/tree/main#anthropic-typescript-api-library) which this library extends.
43
43
44
+
## Authentication
45
+
46
+
This library supports multiple authentication methods:
47
+
48
+
### Default authentication
49
+
50
+
The client automatically uses the default Google Cloud authentication flow:
* @param {string} [opts.baseURL=process.env['ANTHROPIC_VERTEX__BASE_URL'] ?? https://${region}-aiplatform.googleapis.com/v1] - Override the default base URL for the API.
48
69
* @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
@@ -74,9 +95,14 @@ export class AnthropicVertex extends BaseAnthropic {
0 commit comments