Skip to content

Migrate to new higher-level google-genai SDK? #853

@Saran33

Description

@Saran33

I see this issue was previously closed in #734 but I'm wondering if there are any further plans to switch from google-ai-generativelanguage to the new higher-level python-genai SDK?

My understanding is that the former is for lower-level API access, while the later is more of a facade, as per this comment.

On a personal note, I see the former uses gRPC, while the latter uses REST transport. Although gRPC is faster and switching to REST could arguably be considered a regression, personally I find gRPC is more of a pain for testing purposes, given that most other LLM providers are using REST. Personally I would prefer to be able to use REST for consistency and maintainability in testing (recording event streams with tools like VCRpy etc). I'm not sure if there are plans to support gRPC in the new SDK though, going by this issue googleapis/python-genai#557

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions