ภาพรวม: โซลูชัน Firebase AI Logic
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ขณะพัฒนาแอปด้วย Firebase AI Logic คุณอาจต้องการทำสิ่งต่างๆ นอกเหนือจาก
พื้นฐานที่กล่าวถึงในคู่มือหลัก โซลูชันที่ระบุไว้ในส่วนนี้
ให้คำแนะนำเกี่ยวกับกรณีการใช้งานขั้นสูงเพิ่มเติม
จัดการไฟล์และรวมไฟล์ขนาดใหญ่ในคำขอแบบมัลติโมดัล
การใช้ Cloud Storage for Firebase จะช่วยให้คุณใช้ประโยชน์จากโครงสร้างพื้นฐานที่รวดเร็ว ปลอดภัย
และปรับขนาดได้สำหรับการจัดเก็บและจัดการไฟล์ นอกจากนี้ คุณยัง
รวมไฟล์ขนาดใหญ่ขึ้นในคำขอแบบมัลติโมดัลได้โดยใช้
Cloud Storage for Firebase URL
ดูCloud Storage for Firebaseวิธีแก้ปัญหา
ปกป้องแอปจากไคลเอ็นต์ที่ไม่ได้รับอนุญาต
สำหรับแอปบนอุปกรณ์เคลื่อนที่และเว็บแอป คุณต้องปกป้อง Gemini API และ
ทรัพยากรของโปรเจ็กต์จากการละเมิดโดยไคลเอ็นต์ที่ไม่ได้รับอนุญาต
คุณใช้ Firebase App Check เพื่อยืนยันว่าการเรียก API ทั้งหมดมาจากแอปจริง
ของคุณ
ดูFirebase App Checkคำแนะนำ
กำหนดค่ารันไทม์แบบไดนามิกและแบบมีเงื่อนไข
หากต้องการตั้งค่าตามเงื่อนไขรันไทม์ คุณสามารถใช้
Firebase Remote Config ตัวอย่างหนึ่งคือการเปลี่ยนตำแหน่งที่คุณเรียกใช้บริการ Vertex AI และโมเดล Generative ตามตำแหน่งของผู้ใช้ปลายทาง
ดูRemote Configวิธีแก้ปัญหา
อัปเดตค่าในแอปโดยไม่ต้องเผยแพร่แอปเวอร์ชันใหม่
หากต้องการเปลี่ยนค่าในแอปแบบไดนามิกโดยไม่ต้องเผยแพร่แอปเวอร์ชันใหม่ คุณสามารถใช้ Firebase Remote Config ได้ ตัวอย่างเช่น
การอัปเดตชื่อโมเดลเมื่อมีการเผยแพร่โมเดลเวอร์ชันใหม่ หรือการเปลี่ยน
คำสั่งของระบบ พรอมต์ การตั้งค่าความปลอดภัย หรืออินพุตสำหรับคำขอ
ดูRemote Configวิธีแก้ปัญหา
เรากำลังดำเนินการสร้างโซลูชันและคำแนะนำอื่นๆ โปรดกลับมาดูเร็วๆ นี้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-09-06 UTC
[null,null,["อัปเดตล่าสุด 2025-09-06 UTC"],[],[],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!"]]