Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rudrodip/nanobot
nanobot is a simple chat interface built on top off chrome's new ai feature
https://github.com/rudrodip/nanobot
chrome-ai window-ai
Last synced: about 1 month ago
JSON representation
nanobot is a simple chat interface built on top off chrome's new ai feature
- Host: GitHub
- URL: https://github.com/rudrodip/nanobot
- Owner: rudrodip
- License: agpl-3.0
- Created: 2024-07-01T18:06:56.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-02T02:17:44.000Z (7 months ago)
- Last Synced: 2024-12-01T13:49:53.225Z (about 1 month ago)
- Topics: chrome-ai, window-ai
- Language: HTML
- Homepage: https://nanobot.rdsx.dev
- Size: 67.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nanobot
[nanobot](https://nanobot.rdsx.dev) is a simple chat interface built on top off chrome's new ai feature
![nanobot](./og.png)
chrome has recently added a new ai feature, where it can run a local llm model (gemini nano).
```js
const textSession = await window.ai.createTextSession();
const response = await textSession.prompt("Hi there!");
console.log(response);
```## browser compatibility
Please make sure you are using `Chrome (Dev / Canary) version 127 or higher`
Once your browser is installed, ensure the following flags are set:
1. `chrome://flags/#prompt-api-for-gemini-nano` - Select `Enabled`
2. `chrome://flags/#optimization-guide-on-device-model` - Select `Enabled BypassPrefRequirement`
3. `chrome://components` - Click `Check for Update` on Optimization Guide On Device Model to download the model. If you don't see Optimization Guide, ensure you have set the flags correctly above, relaunch your browser, and refresh the page.demo: [nanobot.rdsx.dev](https://nanobot.rdsx.dev)