Sh4yy/personal-ai
Tentang
This is a personal AI assistant that works with Apple Shortcuts removing the need for a dedicated hardware device.
AI dan pembelajaran mesinPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- +1
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliPersonal AI
This is a personal AI assistant that works with Apple Shortcuts removing the need for a dedicated hardware device.
How it works
The assistant is run on Cloudflare Workers and can work with any LLM model. The code snippet here uses llama 3 as an example with a custom function calling for fetching weather data.
Setting Up the Shortcut
Getting Started
Clone the repository:
- Clone this repository and navigate to the root directory.
Install dependencies:
- Run
npm installto install the necessary dependencies.
- Run
Authenticate with Cloudflare:
- Run
npx wrangler loginto log in to your Cloudflare account.
- Run
Create KV namespaces:
- Run
npx wrangler kv:namespace create chatsto create a KV namespace. Note down the ID. - Run
npx wrangler kv:namespace create chats --previewto create a preview KV namespace. Note down the ID.
- Run
Configure the project:
- Update
wrangler.tomlwith the namespace IDs:
kv_namespaces = [ { binding = "personal_ai_chats", id = "<id>", preview_id = "<preview_id>"} ]- Update
Set up API keys:
Run
npx wrangler secret put GROQ_API_KEYto set the GROQ API key.Run
npx wrangler secret put OPENWEATHERMAP_API_KEYto set the OpenWeather API key.Note: You can get these keys by signing up on GroqCloud and OpenWeather respectively.
Deploying the Worker
To deploy the worker, run npx wrangler deploy.
Setting Up the Shortcut
Install the shortcut:
- Use this link to install the shortcut.
Configure the shortcut:
- Open the shortcut and replace the
URLfield with your worker's URL. - If you didn't change the default name, the URL should be
https://personal-ai.<your-username>.workers.dev.
- Open the shortcut and replace the
Jelajahi proyek terkait
Memuat…