Skip to content

tylercode362/Chrome-extension-ChatGPT-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Bridge Chrome Extension for ChatGPT(Web)

A cutting-edge browser extension designed to facilitate seamless communication with chat.openai.com using WebSockets. This extension enables users to interact with the chat interface by sending messages and receiving responses through a WebSocket server, providing a user-friendly and efficient experience.

This WebSocket API Bridge Extension is compatible with both ChatGPT Plus (including GPT-3.5 and GPT-4) and the Free Version, ensuring access for a wide range of users(without the api key).

image

Features

  • Establish real-time communication with chat.openai.com using WebSockets
  • Effortlessly send messages to chat.openai.com via a WebSocket server
  • Receive prompt responses from ChatGPT Web, directly displayed in the chat interface
  • Broad compatibility with ChatGPT Plus (GPT-3.5 / GPT-4) and Free Version (https://chat.openai.com/)

If you're interested in collaborating on

  1. the Auto-GPT project, please give it a try: Auto-GPT-web-chat

  1. the VS Code extension , please give it a try: VSCode Web ChatGPT Extension image image

Usage

Clone the repository to your local machine:

git clone https://github.com/tylercode362/websocket-api-bridge-extension.git
cd websocket-api-bridge-extension/server
docker-compose up

How to Install Docker Compose

Install the extension in Google Chrome:

Open Chrome and navigate to chrome://extensions/ Enable "Developer mode" in the top-right corner Click on "Load unpacked" and select the websocket-api-bridge-extension/extension folder Visit https://chat.openai.com/ and start using the extension.

Click Icon enable Extension

API

The server exposes an API endpoint to send messages to the chat:

Send Message Send a message to chat.openai.com through the WebSocket server.

URL: /send-message
Method: POST
Content-Type: application/json
Data Params: { "message": "Your message here" }

Example:

curl -X POST -H "Content-Type: application/json" -d '{"message": "hi"}' http://localhost:3030/send-message
The response will contain the content generated by chat.openai.com.

Known Limitations The extension is only compatible with Google Chrome. The extension is designed to work specifically with chat.openai.com and may not function properly on other websites.

About

A browser extension to communicate with chat.openai.com using WebSockets.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors