Skip to content

[Request] 迁移至 Google Gen AI SDK #7735

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
sxjeru opened this issue May 7, 2025 · 2 comments · May be fixed by #7884 or #7954
Open

[Request] 迁移至 Google Gen AI SDK #7735

sxjeru opened this issue May 7, 2025 · 2 comments · May be fixed by #7884 or #7954
Labels

Comments

@sxjeru
Copy link
Contributor

sxjeru commented May 7, 2025

🥰 需求描述

目前使用的 @google/generative-ai 已宣布弃用,其生命周期将于 2025 年 8 月 31 日永久终止。

此外 Vertex AI 推出了 express mode,旨在推广 apiKey 简单授权模式,其也需要使用 @google/genai

理论上从 Gemini 2.0 开始,就应当使用 genai 库了的。

🧐 解决方案

https://ai.google.dev/gemini-api/docs/migrate

https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/vertex-ai-express-mode-api-quickstart

📝 补充信息

No response

@lobehubbot
Copy link
Member

👀 @sxjeru

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Requirement description

@google/generative-ai currently in use has been announced to be deprecated and its life cycle will be permanently terminated on August 31, 2025.

In addition, Vertex AI has launched an express mode, aiming to promote the apiKey simple authorization model, which also requires the use of @google/genai

In theory, starting with Gemini 2.0, the genai library should be used.

🧐 Solution

https://ai.google.dev/gemini-api/docs/migrate

https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/vertex-ai-express-mode-api-quickstart

📝 Supplementary information

No response

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