Coder Social home page Coder Social logo

susravan / text-chatgpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from olivia-li/text-chatgpt

0.0 0.0 0.0 17 KB

This is a wrapper around chatGPT so that you can access the platform via text message.

Shell 19.19% Python 23.90% PowerShell 56.91%

text-chatgpt's Introduction

chatGPT Text interface

This is a wrapper around chatGPT so that you can access the platform via text message.

drawing

Setup

This app requires both a Twilio account and an OpenAI account for this to work. All credentials are stored in a .env file.

  1. Activate your python virtual environment: python3 -m venv <path to project directory>
  2. Run pip3 install -r requirements.txt to install project dependencies
  3. Run mv .env.example .env create your .env file

Grab your OpenAI Authentication Token

  1. Go to https://chat.openai.com and log in or sign up
  2. Open your developer console with F12
  3. Open the Application tab and click Cookies
  4. Copy the value for __Secret-nextauth.session-token and paste it to the .env file that you have just created under SESSION_TOKEN.

image



Twilio SID and Secret Token

  1. Go to https://www.twilio.com/ and make a Twilio account.
  2. Go to your twilio console and you'll see your Twilio SID and secret token.
  3. Copy and paste them in your .env file as TWILIO_SID and TWILIO_TOKEN accordingly.

Configure a number to your app

Once your app is publically hosted, you need to buy a Twilio phone number add your url to your Twilio SMS response webhook.

  1. Buy a Twilio phone number
  2. In the phone number settings add your webhook urls. The response webhook should be in the format https://example.com/sms and the failure webhook is in the format https://example.com/timeout

image


I have a hosted version of the application working. Message me if you would like to text the number that I'm hosting. Works in both Canada and the US

text-chatgpt's People

Contributors

olivia-li 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.