Skip to content

Migrate embedchain/ from google-generativeai to python-genai #3361

@FallenDeity

Description

@FallenDeity

🚀 The feature

Currently the llms/gemini.py is migrated to the new google-genai SDK but the embedchain, embedder and llm still have dependency on the old deprecated google-generativeai SDK.

import google.generativeai as genai

import google.generativeai as genai

We should update our codebase to use the new SDK throughout.

Motivation, pitch

With the release of Gemini 2.0, the google-generativeai Python SDK has been deprecated. Google now recommends migrating to the new unified python-genai SDK.

I can make a PR for this if it sounds good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions