From cfcd8af8f40975357713ec336fb8e611f9b337d5 Mon Sep 17 00:00:00 2001 From: a-maurice Date: Thu, 13 Aug 2026 10:16:16 -0700 Subject: [PATCH] Update FirebaseAI backend to Agent Platform --- .../testapp/Assets/Firebase/Sample/FirebaseAI/UIHandler.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firebaseai/testapp/Assets/Firebase/Sample/FirebaseAI/UIHandler.cs b/firebaseai/testapp/Assets/Firebase/Sample/FirebaseAI/UIHandler.cs index 754a1f8c..16699c1c 100644 --- a/firebaseai/testapp/Assets/Firebase/Sample/FirebaseAI/UIHandler.cs +++ b/firebaseai/testapp/Assets/Firebase/Sample/FirebaseAI/UIHandler.cs @@ -44,7 +44,7 @@ public class UIHandler : MonoBehaviour { private string appCheckDebugToken = "REPLACE_WITH_APP_CHECK_TOKEN"; - protected void InitializeAppCheck() { + protected virtual void InitializeAppCheck() { DebugLog("Initializing App Check directly in manual UIHandler"); DebugAppCheckProviderFactory.Instance.SetDebugToken(appCheckDebugToken); FirebaseAppCheck.SetAppCheckProviderFactory(DebugAppCheckProviderFactory.Instance); @@ -76,11 +76,11 @@ protected void InitializeFirebase() { public string ModelName = "gemini-3.1-flash-lite"; private int backendSelection = 0; - private string[] backendChoices = new string[] { "Google AI Backend", "Vertex AI Backend" }; + private string[] backendChoices = new string[] { "Google AI Backend", "Agent Platform Backend" }; private GenerativeModel GetModel() { var backend = backendSelection == 0 ? FirebaseAI.Backend.GoogleAI() - : FirebaseAI.Backend.VertexAI(); + : FirebaseAI.Backend.AgentPlatform(); return FirebaseAI.GetInstance(backend, useLimitedUseAppCheckTokens: true).GetGenerativeModel(ModelName); }