chore(deps)!: migrate from @google/generative-ai to @google/genai #6
Reference in New Issue
Block a user
Delete Branch "chore/deps-google-genai-migration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The @google/generative-ai SDK has been deprecated by Google. This switches
to the successor @google/genai package and rewrites the Gemini provider
against the new stateless models/chats API.
BREAKING CHANGE: GeminiConfig.safetySettings now uses the SafetySetting
type from @google/genai. Consumers passing this field must update their
import from '@google/generative-ai' to '@google/genai'. The shape of the
type is similar but not identical.
Notable simplifications enabled by the new SDK:
is passed to generateContent directly; no more startChat branching)
Default model bumped from gemini-1.5-flash to gemini-2.5-flash.