Git Product home page Git Product logo

siri-ultra's Introduction

Siri Ultra

This is a Siri Ultra 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.

Demo Video

Usage

Method 1: Setting Up the Shortcut Directly

  1. Install the Shortcut:

  2. Configure:

    • Open the Shortcut, follow prompts to input necessary variables.

Method 2: Setting Up the Self-Hosted Version

Getting Started

  1. Clone the repository:

    • Clone this repository and navigate to the root directory.
  2. Install dependencies:

    • Run npm install to install the necessary dependencies.
  3. Authenticate with Cloudflare:

    • Run npx wrangler login to log in to your Cloudflare account.
  4. Create KV namespaces:

    • Run npx wrangler kv:namespace create chats to create a KV namespace. Note down the ID.
  5. Configure the project:

    • Update wrangler.toml with the namespace IDs:
       [[kv_namespaces]]
       binding = "siri_ai_chats"
       id = "<id>"
  6. Set up API keys:

  • Run npx wrangler secret put API_KEY to set the Groq or OpenAI API key.

  • Run npx wrangler secret put SEARCH1API_KEY to set the Search1API API key.

    Note: You can only set API_KEY if you don't need search function

  1. Update the LLMs Vars:
       [vars]
       API_BASE= "https://api.groq.com/openai/v1/"
       MODEL="llama3-70b-8192"
       SYSTEM_PROMPT="You are Siri Pro. Answer in 1-2 sentences. Be friendly, helpful and concise. Default to metric units when possible. Keep the conversation short and sweet. You only answer in text. Don't include links or any other extras. Don't respond with computer code, for example don't return user longitude."

Deploying the Worker

To deploy the worker, run npx wrangler deploy.

Setting Up the Shortcut

  1. Install the shortcut:

  2. Configure the shortcut:

    • Open the shortcut and replace the URL field with your worker's URL.
    • If you didn't change the default name, the URL should be https://siri-ultra.<your-username>.workers.dev.

siri-ultra's People

Contributors

fatwang2 avatar sh4yy avatar adamochayon avatar mendylanda avatar sruta avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.