Dev.to | 📄 原文链接 | 2026-07-28 收录

使用 Antigravity CLI 和 Stitch MCP 构建 Firebase AI 逻辑应用

来源:dev.to — 2026-07-15

📋 概述

本文演示如何使用 Antigravity CLI 构建一个 Angular 图像分析应用,利用 Firebase 混合和设备端推理 Web SDK 结合 Gemini 模型。当应用在 Chrome 148+ 中运行时,SDK 利用设备端 Gemini Nano 模型执行图像到文本任务,令牌消耗为零;在其他浏览器中则回退到云端 Gemini 3.5 Flash。作者安装了 grill-with-docs、angular 和 firebase 等技能来规范开发流程。

🔑 核心要点

💡 金句

When the demo is running in Chrome 148+, the Hybrid and On-device SDK leverages the Prompt API of Gemini Nano, and the token usage is 0.
← 返回 Dev.to 首页