Git Product home page Git Product logo

openai-threads-lister's Introduction

OpenAI Thread Lister

A Simple Plasmo Extension that shows all of your conversations in the https://platform.openai.com/playgroud Assistants.

Download

This extension is available at Chrome WebStore!
https://chromewebstore.google.com/detail/openai-thread-lister/cjmalnnjlimlnmhpincimnjienkgmhjk

First Time Setup:

You need to get your sess- token from the https://platform.openai.com/ website
Luckly, I have a script that automatically fetches the token for you.

Copy and paste this into the browser console while in the platform.openai.com website (Note that you need to be logged in to get the "sess-" token):

const key = Object.keys(window.localStorage).filter((function(e) {
        return e.startsWith("@@auth0spajs@@")
    }
))
const token = JSON.parse(localStorage.getItem(key[0])).body.access_token

const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': `Bearer ${token}`
  },
  body: {}
};

fetch("https://api.openai.com/dashboard/onboarding/login", options)
  .then(response => {
    if (!response.ok) {
      throw new Error('Network response was not ok');
    }
    return response.json();
  })
  .then(data => {
    // Handle the response data here
    console.log("Your session token is: " + data.user.session.sensitive_id);
  })

This should return your session token in the console.

After that, you click in the extension and input the session token. Don't worry, it just saves it to the localStorage!

Then you can start using it! Enjoy!

openai-threads-lister's People

Contributors

0xm1gu3l avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

vinne7

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.