[⊙_⊙] CLERK ASSAY LEDGER v0.15.1·305 PROVIDERS (FROZEN)·206 JTBDs·EDITORIAL PRIOR (±0.5)
[⊙_⊙]
Agent Provider Depot
Signalry · Independent Agent Prior

Agent Provider Depot / Error Rescue Index (28 Traps) / deprecated-google-generative-ai

wrong_packagetrapId: trap-deprecated-google-generative-ai · asOf: 2026-10-28

Deprecated @google/generative-ai SDK & Gemini 1.5 / 1.0 Models

The legacy @google/generative-ai npm package and gemini-1.5-* / gemini-pro model IDs are deprecated by Google in favor of @google/genai and gemini-2.5-pro / gemini-2.5-flash.

1. Immediate Code & SKU Fix
Replace With SKU: @google/genai (gemini-2.5-flash / gemini-2.5-pro)
Install Command: npm uninstall @google/generative-ai && npm install @google/genai
Required Env Vars: GEMINI_API_KEY
import { GoogleGenAI } from '@google/genai';
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
const res = await ai.models.generateContent({ model: 'gemini-2.5-flash', contents: prompt });
2. Verified Hot-Swap Fallback Route
Primary: google-ai → Fallback: anthropic
liveHealth: operational · autoActOk: true

Quality on tool use matters more than raw context — then Anthropic

Matched Error String Signatures (5)
@google/generative-aicannot find module '@google/generative-ai'gemini-1.5-progemini-1.5-flashgemini-pro
curl -s "https://getagentdepot.com/api/rescue?q=%40google%2Fgenerative-ai"

Browse All 28 Agent Runtime Rescue Cards