Skip to content

Commit

Permalink
feat(vertex): api is no longer in private beta (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Mar 19, 2024
1 parent 2dc2174 commit 892127c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions packages/vertex-sdk/README.md
@@ -1,11 +1,8 @@
# Anthropic Vertex TypeScript API Library

> [!IMPORTANT]
> This API is in private preview.
[![NPM version](https://img.shields.io/npm/v/@anthropic-ai/vertex-sdk.svg)](https://npmjs.org/package/@anthropic-ai/vertex-sdk)

This library provides convenient access to the private preview of the Anthropic Vertex API.
This library provides convenient access to the Anthropic Vertex API.

For the non-Vertex Anthropic API at api.anthropic.com, see [`@anthropic-ai/sdk`](https://github.com/anthropics/anthropic-sdk-typescript).

Expand Down
4 changes: 0 additions & 4 deletions packages/vertex-sdk/src/client.ts
Expand Up @@ -5,7 +5,6 @@ import { type RequestInit } from '@anthropic-ai/sdk/_shims/index';
import { GoogleAuth } from 'google-auth-library';

const DEFAULT_VERSION = 'vertex-2023-10-16';
const DEFAULT_BETA_TYPES = ['private-messages-testing'];

export type ClientOptions = Omit<API.ClientOptions, 'apiKey' | 'authToken'> & {
region?: string | null | undefined;
Expand Down Expand Up @@ -117,9 +116,6 @@ export class AnthropicVertex extends Core.APIClient {
if (!options.body['anthropic_version']) {
options.body['anthropic_version'] = DEFAULT_VERSION;
}
if (!options.body['anthropic_beta']) {
options.body['anthropic_beta'] = DEFAULT_BETA_TYPES;
}
}

if (options.path === '/v1/messages' && options.method === 'post') {
Expand Down

0 comments on commit 892127c

Please sign in to comment.