lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design LLMs/AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Bedrock / Azure / Mistral / Perplexity ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT chat application.
https://chat-preview.lobehub.com
Other
34.75k stars 8.17k forks source link

[Request] Support Gemini through vertex AI #2136

Open ornell opened 2 months ago

ornell commented 2 months ago

🥰 Feature Description

Google AI studio isn't available in all regions, making it impossible for certain places not to use gemini with lobechat. Adding a secondary implementation using vertex AI would make it possible for users using Google Cloud to add gemini anyway.

Supported regions for AI studio: https://ai.google.dev/gemini-api/docs/available-regions#available_regions

https://cloud.google.com/vertex-ai/generative-ai/docs/start/quickstarts/quickstart-multimodal#gemini-beginner-samples-nodejs

🧐 Proposed Solution

Add support for Google Gemini through Vertex AI next to the existing implementation. This should ensure that users outside of the supported regions have a secondary option.

📝 Additional Information

No response

lobehubbot commented 2 months ago

👀 @ornell

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

ppold commented 2 weeks ago

+1, this would be great!

arvinxx commented 2 weeks ago

We will implement soon. please follow here: https://github.com/lobehub/lobe-chat/discussions/1284#discussioncomment-8686696