Skip to content

Commit

Permalink
feat (docs): mention anthropic beta incompatibilities (#3388)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel authored Oct 28, 2024
1 parent d696c27 commit 8707bc7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/providers/01-ai-sdk-providers/05-anthropic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ Anthropic language models can also be used in the `streamText`, `generateObject`

### Cache Control

<Note>
Cache control uses the Anthropic cache control beta and is not compatible with
[Computer Use](#computer-use).
</Note>

You can enable the cache control beta by setting the `cacheControl` option to `true` when creating the model instance.

In the messages and message parts, you can then use the `experimental_providerMetadata` property to set cache control breakpoints.
Expand Down Expand Up @@ -172,6 +177,11 @@ const result = await generateText({

### Computer Use

<Note>
Computer use uses the Anthropic computer use beta and is not compatible with
[Cache Control](#cache-control).
</Note>

Anthropic provides three built-in tools that can be used to interact with external systems:

1. **Bash Tool**: Allows running bash commands.
Expand Down

0 comments on commit 8707bc7

Please sign in to comment.