Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Saran33 opened this issue Apr 11, 2025 · 0 comments
Open

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

Saran33 opened this issue Apr 11, 2025 · 0 comments

Comments

@Saran33
Copy link

Saran33 commented Apr 11, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant