GithubHelp home page GithubHelp logo

gdewilde / chatgpt-raycast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abielzulio/chatgpt-raycast

0.0 0.0 0.0 30.41 MB

Unofficial ChatGPT raycast extension

Home Page: https://chat.openai.com

License: MIT License

TypeScript 100.00%

chatgpt-raycast's Introduction

ChatGPT

Interact with OpenAI's ChatGPT right from your command bar

Conversation View

Features

Ask anything, from your favourite thing

Straight from your command bar, ask anything that you wanted and get ChatGPT's generated answer without opening any browser app.

Ask ChatGPT from the command bar

Well-designed, undistracted

Read through AI-generated answer in a clean and nice-looking markdown view without losing ongoing conversation.

Conversation view

Save the answer, for later

Got the answer that you wanted? Great. Now you can save it in your collection locally and here you have it! No need to reask again.

Saving the answer

Look-up your past, fast

Automatically save all the asked questions and its generated answer locally, so you can go back digging for the answer you're looking for without any internet connection!

Looking through the question history

How to use

This package requires a valid Session Token from ChatGPT to access it's unofficial REST API by transitive-bullshit/chatgpt-api.

To get a session token:

  1. Go to https://chat.openai.com/chat and log in or sign up.

  2. Open dev tools.

  3. Open Application > Cookies.

    ChatGPT cookies

  4. Copy the value of __Secure-next-auth.session-token and paste it in the Session Token initialization set-up field!

Update December 11, 2022

An update note from the API author

Today, OpenAI added additional Cloudflare protections that make it more difficult to access the unofficial API. Here's some additional steps that you need to follow:

  1. Copy the value of the cf_clearance cookie and paste it in the Clearance Token initialization set-up field.

ChatGPT user agent

  1. Copy your browser's user-agent header from any request in your browser's network tab and paste it in the User Agent initialization set-up field.

ChatGPT user agent

Restrictions on this method:

  • Cloudflare cf_clearance tokens expire after 2 hours, so there will be a pop-up reminder to update your token if you had an invalid token value.
  • Your user-agent and IP address must match from the real browser window you're logged in with to the one you're using for the extension.
    • This means that you currently can't log in with your laptop and then run the extension in the same time.
  • You should not be using this account while the extension is already running, because that browser window may refresh one of your tokens and invalidate the extension's session.

Initialization set-up

Initial set-up

All the preferences value will be stored locally using Preferences API


Made with โ™ฅ from Indonesia

chatgpt-raycast's People

Contributors

abielzulio avatar ivanglushko avatar shichongrui avatar timolins 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.