@ai-sdk/google-vertex
TypeScript icon, indicating that this package has built-in type declarations

0.0.37 • Public • Published

Vercel AI SDK - Google Vertex AI Provider

The Google Vertex provider for the Vercel AI SDK contains language model support for the Google Vertex AI APIs.

Setup

The Google provider is available in the @ai-sdk/google-vertex module. You can install it with

npm i @ai-sdk/google-vertex

Provider Instance

You can import the default provider instance vertex from @ai-sdk/google-vertex:

import { vertex } from '@ai-sdk/google-vertex';

Example

import { vertex } from '@ai-sdk/google-vertex'
import { generateText } from 'ai'

const { text } = await generateText({
  model: vertex('gemini-1.5-flash')
  prompt: 'Write a vegetarian lasagna recipe for 4 people.'
})

Documentation

Please check out the Google Vertex provider for more information.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.37764latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.37764
0.0.36295
0.0.3560
0.0.34840
0.0.3327
0.0.3242
0.0.310
0.0.300
0.0.290
0.0.2865
0.0.2767
0.0.261
0.0.25649
0.0.240
0.0.230
0.0.220
0.0.2111
0.0.200
0.0.19239
0.0.1817
0.0.179
0.0.1622
0.0.1513
0.0.144
0.0.130
0.0.1214
0.0.1115
0.0.1015
0.0.95
0.0.81
0.0.70
0.0.60
0.0.51
0.0.42
0.0.31
0.0.20
0.0.10

Package Sidebar

Install

npm i @ai-sdk/google-vertex

Weekly Downloads

3,179

Version

0.0.37

License

Apache-2.0

Unpacked Size

136 kB

Total Files

11

Last publish

Collaborators

  • vercel-release-bot
  • jaredpalmer