Skip to content

Commit

Permalink
feat(vertex): api is no longer in private beta (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Mar 19, 2024
1 parent 330b61e commit 4cb0e64
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ For a more fully fledged example see [`examples/bedrock.py`](https://github.com/

## Google Vertex

> [!IMPORTANT]
> This API is in private preview.
This library also provides support for the [Anthropic Vertex API](https://cloud.google.com/vertex-ai?hl=en) if you install this library with the `vertex` extra, e.g. `pip install -U anthropic[vertex]`.

You can then import and instantiate a separate `AnthropicVertex`/`AsyncAnthropicVertexAsync` class, which has the same API as the base `Anthropic`/`AsyncAnthropic` class.
Expand Down
2 changes: 0 additions & 2 deletions src/anthropic/lib/vertex/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@


DEFAULT_VERSION = "vertex-2023-10-16"
DEFAULT_BETA_TYPES = ["private-messages-testing"]

_HttpxClientT = TypeVar("_HttpxClientT", bound=Union[httpx.Client, httpx.AsyncClient])
_DefaultStreamT = TypeVar("_DefaultStreamT", bound=Union[Stream[Any], AsyncStream[Any]])
Expand All @@ -37,7 +36,6 @@ def _build_request(
) -> httpx.Request:
if is_dict(options.json_data):
options.json_data.setdefault("anthropic_version", DEFAULT_VERSION)
options.json_data.setdefault("anthropic_beta", DEFAULT_BETA_TYPES)

if options.url == "/v1/messages" and options.method == "post":
project_id = self.project_id
Expand Down

0 comments on commit 4cb0e64

Please sign in to comment.