Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vertex): api is no longer in private beta #344

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions packages/vertex-sdk/README.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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