aidk-google
v0.1.8
Published
Google AI adapter for AIDK
Maintainers
Readme
aidk-google
Google AI / Vertex AI adapter for AIDK.
Installation
pnpm add aidk-googleUsage
import { GoogleModel } from 'aidk-google';
// Google AI Studio
<GoogleModel
apiKey={process.env.GOOGLE_API_KEY}
model="gemini-3-flash"
/>
// Vertex AI
<GoogleModel
vertexai={true}
project={process.env.GCP_PROJECT_ID}
location="us-central1"
model="gemini-3-flash"
googleAuthOptions={{
credentials: JSON.parse(process.env.GCP_CREDENTIALS),
}}
/>Configuration
| Prop | Type | Description |
| ------------------- | ---------- | ------------------------ |
| model | string | Model name |
| apiKey | string? | Google AI Studio API key |
| vertexai | boolean? | Use Vertex AI |
| project | string? | GCP project ID (Vertex) |
| location | string? | GCP region (Vertex) |
| googleAuthOptions | object? | Auth options (Vertex) |
| temperature | number? | Sampling temperature |
| maxTokens | number? | Maximum tokens |
Documentation
See the full documentation.
