yym68686 / ChatGPT-Telegram-Bot

TeleChat: 🤖️ an AI chat Telegram bot can Web Search Powered by GPT-3.5/4/4 Turbo/4o, DALL·E 3, Groq, Gemini 1.5 Pro/Flash and the official Claude2.1/3/3.5 API using Python on Zeabur, fly.io and Replit.
https://t.me/chatgpt68_bot
GNU General Public License v3.0
660 stars 190 forks source link

[feature request] support Google Vertex AI #38

Closed krau closed 3 months ago

krau commented 3 months ago

Google Vertex AI API needs to be called with two parameters: project_id and location.

Reference documentation:

https://cloud.google.com/vertex-ai/generative-ai/docs/start/quickstarts/quickstart-multimodal?hl=zh-CN

thanks for your work = ̄ω ̄=

yym68686 commented 3 months ago

I did not use the Vertex AI API, the endpoint I used is https://generativelanguage.googleapis.com/v1/models/gemini-1.5-flash:generateContent, so there is no need to pass in the two parameters: project_id and location. May I ask if you have a scenario where you must use the Vertex AI API?

krau commented 3 months ago

I did not use the Vertex AI API, the endpoint I used is https://generativelanguage.googleapis.com/v1/models/gemini-1.5-flash:generateContent, so there is no need to pass in the two parameters: project_id and location. May I ask if you have a scenario where you must use the Vertex AI API?

Vertex AI provides more professional service support for businesses, but individual users do not need it. So you are right, this repo does not need to support Vertex AI, and there is no difference in accessing Gemini between using Google API and Vertex AI.