new·Earn with mozg — 20% of every monthSend somebody here and take a fifth of every plan payment they make, for as long as they keep paying — not a bounty on the first invoice. Your handle is the link, the window is thirty days, and the commission lands on your balance the second they pay. Free to join: if you have signed in, you already have the link. mozg.sh/earnall news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

google-vertex-anthropic/options

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Google Vertex Anthropic provider optional settings

Optional settings: project (string, defaults to GOOGLE_VERTEX_PROJECT env var), location (string e.g. us-central1, defaults to GOOGLE_VERTEX_LOCATION env var), googleAuthOptions (authentication options), headers (Resolvable<Record<string, string | undefined>>), fetch (custom fetch implementation).

Google Vertex Anthropic Edge runtime googleCredentials

For Edge runtime, pass `googleCredentials` object to `createVertexAnthropic` with: clientEmail (string, defaults to GOOGLE_CLIENT_EMAIL env var), privateKey (string, defaults to GOOGLE_PRIVATE_KEY env var), privateKeyId (string, optional, defaults to GOOGLE_PRIVATE_KEY_ID env var).

Google Vertex Anthropic provider options sendReasoning

The `sendReasoning` provider option (boolean, defaults to true) includes reasoning content in requests. Set to false if experiencing issues with the model handling reasoning content.

Google Vertex Anthropic thinking option

The `thinking` provider option enables reasoning support. See Reasoning section for details.

Google Vertex Anthropic metadata option

The `metadata` provider option is an object for metadata to include with the request. Supports `userId` (string) as an external identifier for the end-user.

Google Vertex Anthropic reasoning support

Anthropic has reasoning support for the `claude-3-7-sonnet@20250219` model. Enable it using the `thinking` provider option with `type: 'enabled'` and `budgetTokens` (e.g., 12000).

Google Vertex Anthropic reasoning example

Example: `const { text, reasoningText, reasoning } = await generateText({ model: vertexAnthropic('claude-3-7-sonnet@20250219'), prompt: 'How many people will live in the world in 2040?', providerOptions: { anthropic: { thinking: { type: 'enabled', budgetTokens: 12000 } } } });`

Give your agent this brain