TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Code to run Gemini (Nano) locally on desktop/Chrome

22 点作者 notnotrishi11 个月前
Chrome Canary (nightly build for devs) now has Gemini LLM inbuilt. This is just some simple code/demo to enable and use that feature.

2 条评论

samspenc11 个月前
Huh, looking at the code, it&#x27;s simpler than I thought, basically these are the 2 lines that enable the request-response functionality:<p><pre><code> const session = await window.ai.createTextSession(); const response = await session.prompt(prompt);</code></pre>
评论 #40815830 未加载
DownrightNifty11 个月前
Instructions didn&#x27;t work for me. Tried on Windows 10 and macOS 14.3 (x86) with Chrome Canary. The &quot;On Device Model&quot; component doesn&#x27;t show up.
评论 #40813686 未加载