Skip to content

Migration from PalM2 api to Gemini API #41

Description

@skyprince999

Migration Review: PaLM to Gemini with New google-genai SDK

⚠️ IMPORTANT: Package Deprecation Timeline

Date Event
Aug 15, 2024 PaLM API decommissioned
Aug 31, 2025 google-generativeai package deprecated
Nov 30, 2025 Legacy libraries fully deprecated
Feb 4, 2026 Current date - MUST use google-genai

Package Migration

# OLD (Deprecated as of Aug 2025)
pip install google-generativeai

# NEW (Required as of Feb 2026)
pip install google-genai

Files Modified

1. gptfuzzer/llm/llm.py - ✅ UPDATED

2. gptfuzzer/llm/init.py - ✅ UPDATED

3. install.ipynb - ✅ UPDATED

Raised a PR with the above changes (# PR40 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions