From af1a1f6716bd5f9a96907316ba89da302367ba65 Mon Sep 17 00:00:00 2001 From: Cynthia J Date: Mon, 3 Aug 2026 12:26:43 -0700 Subject: [PATCH] rename vertexAI backend to agentPlatform --- firebase_ai_live_api_demo/README.md | 4 ++-- .../lib/src/flutterfire_ai_live_api_demo.dart | 2 +- firebase_ai_live_api_demo/pubspec.yaml | 4 ++-- firebase_ai_logic_showcase/README.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/firebase_ai_live_api_demo/README.md b/firebase_ai_live_api_demo/README.md index 5bab3bc9..3d1046a9 100644 --- a/firebase_ai_live_api_demo/README.md +++ b/firebase_ai_live_api_demo/README.md @@ -1,7 +1,7 @@ # Firebase AI Logic Live API Demo **Target Platforms:** iOS, Android, Web -**Tech Stack:** [Flutter](https://flutter.dev/) (frontend), [Firebase AI Logic](https://firebase.google.com/docs/ai-logic) (Gemini API in Vertex AI for the backend) +**Tech Stack:** [Flutter](https://flutter.dev/) (frontend), [Firebase AI Logic](https://firebase.google.com/docs/ai-logic) (Gemini Enterprise Agent Platform for the backend) ![Plant Identifier – Firebase AI Live API Demo App on mobile & web](README/PlantIdentifierHero.png) @@ -74,5 +74,5 @@ or take some sort of action. - [Firebase AI Logic docs](https://firebase.google.com/docs/ai-logic) Feeling inspired? Check out these other Flutter & Firebase AI Logic sample apps! -- [Agentic App Manager](https://github.com/flutter/demos/tree/main/agentic_app_manager): Build an agentic experience in a Flutter app using Firebase AI Logic with the Gemini API in Vertex AI. +- [Agentic App Manager](https://github.com/flutter/demos/tree/main/agentic_app_manager): Build an agentic experience in a Flutter app using Firebase AI Logic with the Gemini Enterprise Agent Platform. - [Colorist](https://github.com/flutter/demos/tree/main/vertex_ai_firebase_flutter_app): Explore LLM tooling interfaces by allowing users to describe colors in natural language. The app uses Gemini LLM to interpret descriptions and change the color of a displayed square by calling specialized color tools. diff --git a/firebase_ai_live_api_demo/lib/src/flutterfire_ai_live_api_demo.dart b/firebase_ai_live_api_demo/lib/src/flutterfire_ai_live_api_demo.dart index 5754a6de..985f0dcf 100644 --- a/firebase_ai_live_api_demo/lib/src/flutterfire_ai_live_api_demo.dart +++ b/firebase_ai_live_api_demo/lib/src/flutterfire_ai_live_api_demo.dart @@ -19,7 +19,7 @@ class _MyHomePageState extends ConsumerState { bool _audioIsInitialized = false; bool _videoIsInitialized = false; final LiveGenerativeModel - _liveModel = FirebaseAI.vertexAI().liveGenerativeModel( + _liveModel = FirebaseAI.agentPlatform().liveGenerativeModel( model: 'gemini-2.0-flash-live-preview-04-09', systemInstruction: Content.text( 'You are a plant identifier. Greet the user by telling them that you ' diff --git a/firebase_ai_live_api_demo/pubspec.yaml b/firebase_ai_live_api_demo/pubspec.yaml index 92b023b9..4b5c0370 100644 --- a/firebase_ai_live_api_demo/pubspec.yaml +++ b/firebase_ai_live_api_demo/pubspec.yaml @@ -37,10 +37,10 @@ dependencies: record: ^5.2.1 flutter_riverpod: ^2.6.1 flutter_soloud: ^3.1.6 - firebase_core: ^3.13.0 + firebase_core: ^4.13.0 camera: ^0.11.1 flutter_animate: ^4.5.2 - firebase_ai: ^2.0.0 + firebase_ai: ^3.15.0 dev_dependencies: flutter_test: diff --git a/firebase_ai_logic_showcase/README.md b/firebase_ai_logic_showcase/README.md index 29485f40..b5d5345b 100644 --- a/firebase_ai_logic_showcase/README.md +++ b/firebase_ai_logic_showcase/README.md @@ -17,7 +17,7 @@ Flutter apps. ## Getting Started -1. Follow [these instructions](https://firebase.google.com/docs/ai-logic/get-started?&api=vertex#set-up-firebase) +1. Follow [these instructions](https://firebase.google.com/docs/ai-logic/get-started?&api=dev#set-up-firebase) to set up a Firebase project & connect the app to Firebase using `flutterfire configure` 1. Run `flutter pub get` in the root of the project directory `flutter_ai` to