GithubHelp home page GithubHelp logo

atjsh / yakgpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yakgpt/yakgpt

0.0 0.0 0.0 16.28 MB

Locally running, hands-free ChatGPT

Home Page: https://i.atj.sh

License: MIT License

JavaScript 0.09% TypeScript 94.26% CSS 4.47% Dockerfile 1.17%

yakgpt's Introduction

YakGPT

A simple, locally running ChatGPT UI that makes your text generation faster and chatting even more engaging!

Features

  • GPT 3.5 & GPT 4 via OpenAI API
  • Speech-to-Text via Azure & OpenAI Whisper
  • Text-to-Speech via Azure & Eleven Labs
  • Run locally on browser – no need to install any applications
  • Faster than the official UI – connect directly to the API
  • Easy mic integration – no more typing!
  • Use your own API key – ensure your data privacy and security
  • Data submitted via the API is not used for training and stored for 30 days only
  • All state stored locally in localStorage – no analytics or external service calls
  • Access on https://yakgpt.vercel.app or run locally!

Note that GPT-4 API access is needed to use it. GPT 3.5 is enabled for all users.

Screenshots

Mobile Voice Mode Light Theme Dark Theme
image image image image

🚀 Getting Started

Visit YakGPT to try it out without installing, or follow these steps to run it locally:

Prerequisites

You'll need the following tools installed on your computer to run YakGPT locally.

  • Git
  • Yarn (or npm or pnpm)
  • Any modern web browser like Google Chrome, Mozilla Firefox, or Microsoft Edge

Installation

  1. Clone the repository:
$ git clone https://github.com/yakGPT/YakGPT.git
  1. Install dependencies, build the bundle and run the server
$ yarn
$ yarn build
$ yarn start

Then navigate to http://localhost:3000

Congratulations! 🎉 You are now running YakGPT locally on your machine.

🔑 API Key Configuration

To utilize YakGPT, you'll need to acquire an API key for OpenAI. The app should prompt you to insert you key.

Add to .env.local(⚠️ Local use only)

If you want the keys to persist across app builds, you can add it to the .env.local.

$ echo "NEXT_PUBLIC_OPENAI_API_KEY=<your-open-ai-key-here>" > .env.local
$ echo "NEXT_PUBLIC_11LABS_API_KEY=<your-eleven-labs-key-here>" >> .env.local

🐳 Docker

To use the pre-built Docker image from Docker Hub (only for amd64), run:

$ docker run -it -p 3000:3000 yakgpt/yakgpt:latest

To build the Docker image yourself (such as if you're on arm64), run:

$ docker build -t yakgpt:latest .
$ docker run -it -p 3000:3000 yakgpt:latest

🎤 Microphone Integration

YakGPT makes chatting a breeze with its microphone integration! Activate your microphone using your browser's permissions, and YakGPT will automatically convert your speech into text.

You can also toggle the mic integration as needed by clicking on the microphone icon in the app.

Remember to use a supported web browser and ensure your microphone is functioning properly.

🛡️ Data Privacy and Security

YakGPT ensures your data privacy and security by letting you use your own API key. Your conversation with YakGPT takes place directly between your browser and OpenAI's GPT-3 API, with no intermediary servers.

📃 License

This project is licensed under the MIT License - see the LICENSE file for details

🙌 Acknowledgments

  • OpenAI for building such amazing models and making them cheap as chips.
  • Mantine UI just an all-around amazing UI library.
  • opus-media-recorder A real requirement for me was to be able to walk-and-talk. OpenAI's Whisper API is unable to accept the audio generated by Safari, and so I went back to wav recording which due to lack of compression makes things incredibly slow on mobile networks. opus-media-recorder saved my butt by allowing cross-platform compressed audio recording via web worker magic. 🤗

Got feedback, questions or ideas? Feel free to submit an issue!

yakgpt's People

Contributors

clueed avatar dev-msp avatar francescor avatar gbro3n avatar luoxi avatar mbotsu avatar pabl-o-ce avatar paulchiu avatar poteat avatar rbalsick avatar rikhuijzer avatar strlns avatar thelinuxkid avatar yakgpt 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.