@netlify/agent-runner-cli 1.90.1 → 1.90.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,12 @@
1
1
  ---
2
2
  name: netlify-ai-gateway
3
- description: Use Netlify AI Gateway for AI inference in Netlify Functions and server-side code. Use when adding AI/LLM features with OpenAI, Anthropic, or Google Gemini without managing API keys.
3
+ description: Use Netlify AI Gateway for AI inference in Netlify Functions and server-side code. Use when adding AI/LLM features with OpenAI, Anthropic, or Google Gemini without managing API keys. Must be read before selecting or changing any AI model. Contains the list of supported models.
4
4
  ---
5
5
 
6
6
  # Netlify AI Gateway
7
7
 
8
+ > **IMPORTANT:** Only use models listed in the "Available Models" section below. AI Gateway does not support every model a provider offers. Using an unsupported model will cause runtime errors.
9
+
8
10
  Zero-config AI inference for Netlify projects. Netlify automatically injects environment variables so official
9
11
  provider SDKs work without API keys or configuration.
10
12
 
@@ -87,7 +89,7 @@ const response = await openai.responses.create({
87
89
  console.log(response.output_text)
88
90
  ```
89
91
 
90
- ### Google Gemini
92
+ ### Gemini
91
93
 
92
94
  ```bash
93
95
  npm install @google/genai
@@ -201,24 +203,6 @@ for (const item of response.output) {
201
203
  }
202
204
  ```
203
205
 
204
- ### Google Gemini (Imagen)
205
-
206
- ```typescript
207
- import { GoogleGenAI } from '@google/genai'
208
-
209
- const ai = new GoogleGenAI({})
210
-
211
- const response = await ai.models.generateImages({
212
- model: 'imagen-4.0-generate-001',
213
- prompt: 'A cute otter in a river',
214
- config: { numberOfImages: 1 },
215
- })
216
-
217
- for (const image of response.generatedImages) {
218
- const imageBytes = image.image.imageBytes
219
- }
220
- ```
221
-
222
206
  ## Netlify Functions
223
207
 
224
208
  Full example of a Netlify Function using AI Gateway:
@@ -354,64 +338,13 @@ const response = await fetch(`${process.env.ANTHROPIC_BASE_URL}/v1/messages`, {
354
338
 
355
339
  ## Available Models
356
340
 
357
- Key models per provider. For the latest list, see https://docs.netlify.com/build/ai-gateway/overview/.
358
-
359
- ### Anthropic
360
-
361
- - `claude-opus-4-6`
362
- - `claude-opus-4-5-20251101`
363
- - `claude-opus-4-1-20250805`
364
- - `claude-sonnet-4-5-20250929`
365
- - `claude-sonnet-4-20250514`
366
- - `claude-haiku-4-5-20251001`
367
- - `claude-3-7-sonnet-20250219`
368
- - `claude-3-5-haiku-20241022`
369
-
370
- ### OpenAI
341
+ For the latest list, see https://docs.netlify.com/build/ai-gateway/overview/.
371
342
 
372
- - `gpt-5.2`
373
- - `gpt-5.1`
374
- - `gpt-5.1-codex`
375
- - `gpt-5`
376
- - `gpt-5-mini`
377
- - `gpt-5-nano`
378
- - `gpt-4.1`
379
- - `gpt-4.1-mini`
380
- - `gpt-4.1-nano`
381
- - `gpt-4o`
382
- - `gpt-4o-mini`
383
- - `o3`
384
- - `o3-mini`
385
- - `o4-mini`
386
- - `gpt-image-1` (image generation)
387
- - `codex-mini-latest`
388
-
389
- ### Google Gemini
390
-
391
- - `gemini-3-pro-preview`
392
- - `gemini-3-flash-preview`
393
- - `gemini-2.5-pro`
394
- - `gemini-2.5-flash`
395
- - `gemini-2.5-flash-lite`
396
- - `gemini-2.0-flash`
397
- - `gemini-2.0-flash-lite`
398
- - `imagen-4.0-generate-001` (image generation)
399
- - `veo-3.0-generate-preview` (video generation)
343
+ <!-- AVAILABLE_MODELS -->
400
344
 
401
345
  ## Rate Limits
402
346
 
403
- Tokens per minute (TPM) are scoped per **account** across all projects. Both input and output tokens count.
404
- For Anthropic, cached tokens are excluded; for other providers, cached tokens are included.
405
- For the latest limits, see https://docs.netlify.com/build/ai-gateway/overview/.
406
-
407
- | Model | Free | Personal | Pro |
408
- |-------|------|----------|-----|
409
- | claude-sonnet-4-5-20250929 | 18,000 | 90,000 | 180,000 |
410
- | gpt-5 | 18,000 | 90,000 | 180,000 |
411
- | gpt-4o-mini | 250,000 | 500,000 | 750,000 |
412
- | gemini-2.5-pro | 24,000 | 120,000 | 240,000 |
413
-
414
- Set up rate limiting rules on your functions to prevent abuse from client-side callers.
347
+ Tokens per minute (TPM) are scoped per **account** across all projects. For current limits per model and plan tier, see https://docs.netlify.com/build/ai-gateway/overview/.
415
348
 
416
349
  ## Limitations
417
350
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/agent-runner-cli",
3
3
  "type": "module",
4
- "version": "1.90.1",
4
+ "version": "1.90.2",
5
5
  "description": "CLI tool for running Netlify agents",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",