AkashKarnatak / chatgpt-anywhere

ChatGPT Anywhere is a browser extension skeleton for seamless ChatGPT integration, interacting directly with the ChatGPT's browser API and offering developers a cost-efficient solution by eliminating the need for OpenAI's paid API calls.
GNU Affero General Public License v3.0
23 stars 5 forks source link

ChatGPT Browser Documentation. #3

Closed TheRealJamesRussell closed 5 months ago

TheRealJamesRussell commented 5 months ago

Hey, I'm working on a project and looking for ways to import external data into ChatGPT in the browser.

Is there any documentation on how to achieve it?

AkashKarnatak commented 5 months ago

Chatgpt browser api documentation doesn't exist.

TheRealJamesRussell commented 5 months ago

Could you point me in the right direction? I would love to understand how to do this for myself.

AkashKarnatak commented 5 months ago

I am not sure what you are trying to achieve. Can you elaborate on your problem?

TheRealJamesRussell commented 5 months ago

I'm working on a prompt base for me and a bud.

Features are currently supporting prompts with variables. prompts going directly to OpenAI's api.

We both have ChatGPT Pro accounts and would prefer to go from promptbase directly to chatgpt.

I want to learn how to use the API you use to talk directly to ChatGPT and use gpt for free.

AkashKarnatak commented 5 months ago

I am using the API endpoint that openai uses for chatgpt in the browser. This endpoint requires an authorisation token that you can get by hitting the auth/session endpoint. You can read the src/background.js file to understand how I am calling those endpoints.

TheRealJamesRussell commented 5 months ago

Thanks!