總覽:Firebase AI Logic 解決方案
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
使用 Firebase AI Logic 開發應用程式時,您可能想進一步瞭解主要指南中討論的基本概念。本節列出的解決方案提供更進階的應用實例指南。
管理檔案,並在多模態要求中加入大型檔案
使用 Cloud Storage for Firebase,即可享有快速、安全且可擴充的檔案儲存和管理基礎架構。此外,您可以使用 Cloud Storage for Firebase 網址,在多模態要求中加入較大的檔案。
請參閱Cloud Storage for Firebase解決方案
保護應用程式,避免未經授權的用戶端存取
對於行動和網頁應用程式,您需要保護 Gemini API 和專案資源,避免未經授權的用戶端濫用。您可以使用 Firebase App Check 確認所有 API 呼叫都來自實際應用程式。
請參閱Firebase App Check指南
動態且有條件地設定執行階段設定
如要根據執行階段條件設定,可以使用 Firebase Remote Config。舉例來說,您可以根據使用者的位置,變更執行 Vertex AI 服務和生成模型的所在位置。
請參閱Remote Config解決方案
更新應用程式中的值,不必發布新版應用程式
如要在不發布新版應用程式的情況下,動態變更應用程式中的值,可以使用 Firebase Remote Config。例如,在新模型版本發布時更新模型名稱,或變更系統指令、提示、安全設定或要求輸入內容。
請參閱Remote Config解決方案
我們正積極開發其他解決方案和指南,請稍後再回來查看!
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-06 (世界標準時間)。
[null,null,["上次更新時間:2025-09-06 (世界標準時間)。"],[],[],null,["\u003cbr /\u003e\n\nAs you develop your app with Firebase AI Logic, you might want to go beyond\nthe basics discussed in the main guides. The solutions outlined in this section\noffer guidance on more advanced use cases.\n\nManage files and include large files in multimodal requests\n\nBy using Cloud Storage for Firebase, you can take advantage of a fast, secure,\nand scalable infrastructure for file storage and management. Plus, you can\ninclude larger files in your multimodal requests using a\nCloud Storage for Firebase URL.\n\n[See the Cloud Storage for Firebase solution](/docs/ai-logic/solutions/cloud-storage)\n\nProtect your app from unauthorized clients\n\nFor mobile and web apps, you need to protect the Gemini API and\nyour project resources from abuse by unauthorized clients.\nYou can use Firebase App Check to verify that all API calls are from your\nactual app.\n\n[See the Firebase App Check guide](/docs/ai-logic/app-check)\n\nDynamically and conditionally set runtime configurations\n\nIf you want to set configurations based on runtime conditions, you can use\n[Firebase Remote Config](/docs/remote-config). One example is changing the\nlocation where you run the Vertex AI service and generative model based on an\nend-user's location.\n\n[See the Remote Config solution](/docs/ai-logic/solutions/remote-config)\n\nUpdate values in your app without releasing a new version of your app\n\nIf you need to dynamically change values in your app without releasing a new\nversion of your app, you can use Firebase Remote Config. Examples include\nupdating the model name when a new model version is released or changing\nsystem instructions, prompts, safety settings, or input for a request.\n\n[See the Remote Config solution](/docs/ai-logic/solutions/remote-config)\n\n\u003cbr /\u003e\n\nWe're actively working on other solutions and guides, so check back soon!"]]