2 releases
new 0.0.2 | Dec 4, 2024 |
---|---|
0.0.1 | Dec 2, 2024 |
#609 in Science
276 downloads per month
13KB
184 lines
🌌 Overview
nano-ai
is a lightweight and efficient AI adapter for integrating Gemini Nano AI model into WASM frameworks.
🚀 Features
Method | Supported | Tested | Windows Chrome Canary | Linux Chrome Canary |
---|---|---|---|---|
get_capabilities |
✅ | ✅ | ✅ | ✅ |
create_session |
✅ | ✅ | ✅ | ✅ |
send_prompt |
✅ | ✅ | ✅ | ❌ |
stream_prompt |
✅ | ⬜ | ✅ | ❌ |
destroy_session |
✅ | ✅ | ✅ | ✅ |
[!WARNING]
This crate has been fully tested only on Chrome Canary running on a Windows machine. Compatibility on Linux Chrome Canary is limited, as onlyget_capabilities
,create_session
, anddestroy_session
methods are confirmed to work.
🌐 WASM Frameworks
Framework | Supported |
---|---|
Yew | ✅ |
Dioxus | ⬜ |
Leptos | ⬜ |
📖 Examples
Framework | Example |
---|---|
Yew | |
Dioxus | ⬜ |
Leptos | ⬜ |
⬜: TODO
👥 Contributing
We welcome contributions to enhance nano-ai
! Feel free to submit issues, create pull requests, or discuss improvements on our GitHub repository.
📝 License
This project is licensed under the MIT License.
Dependencies
~1.7–4MB
~75K SLoC