NextChat
NextChat copied to clipboard
[Feature Request] 支持Vertex AI版的Gemini
🥰 需求描述
和Google AI的Gemini不一样,还有一个Vertex AI版的Gemini Vertex AI版的验证方式是Service Account 或者用的更多的是ADC (Application Default Credentials), 而不用API Key
🧐 解决方案
增加对Vertex AI版的Gemini的支持
📝 补充信息
No response
Bot detected the issue body's language is not English, translate it automatically.
Title: [Feature Request] Support Vertex AI version of Gemini
🥰 Description of requirements
Unlike Google AI’s Gemini, there is also a Vertex AI version of Gemini. The verification method of Vertex AI version is Service Account or more commonly used is ADC (Application Default Credentials) instead of API Key.
🧐 Solution
Added support for Vertex AI version of Gemini
📝 Supplementary information
No response
能发一下Vertex AI版的Gemini的官方文档吗?一方面是给研发看,一方面issue中的信息会详细一些
Bot detected the issue body's language is not English, translate it automatically.
Can you send the official documentation of the Vertex AI version of Gemini? On the one hand, it is for R&D, and on the other hand, the information in the issue will be richer.
https://cloud.google.com/vertex-ai/generative-ai/docs/start/quickstarts/quickstart-multimodal
虽然都是Gemini 但Python部分是不一样的
Vertex AI版本是从Vertexai库载入的
from vertexai.generative_models import GenerativeModel
Bot detected the issue body's language is not English, translate it automatically.
https://cloud.google.com/vertex-ai/generative-ai/docs/start/quickstarts/quickstart-multimodal
Although they are both Gemini, the Python part is different.
The Vertex AI version is loaded from the Vertexai library
from vertexai.generative_models import GenerativeModel