Skip to content
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

feat: Add support for ChatFirebaseVertexAI #422

Merged
merged 1 commit into from
May 14, 2024
Merged

Conversation

davidmigloz
Copy link
Owner

@davidmigloz davidmigloz commented May 14, 2024

image

The Vertex AI Gemini API gives you access to the latest generative AI models from Google: the Gemini models. If you need to call the Vertex AI Gemini API directly from your mobile or web app you can use the ChatFirebaseVertexAI class instead of the ChatVertexAI class which is designed to be used on the server-side.

ChatFirebaseVertexAI is built specifically for use with mobile and web apps, offering security options against unauthorized clients as well as integrations with other Firebase services.

await Firebase.initializeApp();
final chatModel = ChatFirebaseVertexAI(
  defaultOptions: ChatFirebaseVertexAIOptions(
    model: 'gemini-1.5-pro-preview-0514',
  ),
);

Check out the sample project to see a complete project using Vertex AI for Firebase.

vertex_ai_firebase

@davidmigloz davidmigloz self-assigned this May 14, 2024
@davidmigloz davidmigloz added t:enhancement New feature or request c:chat-models Chat models. p:langchain_firebase langchain_firebase package. labels May 14, 2024
@davidmigloz davidmigloz added this to the v0.8.0 milestone May 14, 2024
@davidmigloz davidmigloz merged commit 8d0786b into main May 14, 2024
1 check passed
@davidmigloz davidmigloz deleted the langchain-firebase branch May 14, 2024 20:52
@davidmigloz
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:chat-models Chat models. p:langchain_firebase langchain_firebase package. t:enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant