Skip to main content

A Python library that allows you to use Langchain with the ChatGPT instance in your browser.

Project description

Langchain LLM

PyPI version License: MIT

Description

ChatGPT Browser API is a Python library that allows you to use Langchain with the ChatGPT instance in your browser.

With a Plus subscription, you can take advantage of GPT4 without the need for an API key.

Installation

You can install ChatGPT Browser API via pip. Run the following command to install it:

pip install chatgpt-browser-api

Ensure that you have Python 3.6 or a higher version installed on your system.

Usage

Once installed, you can import ChatGPT Browser API. Here's a basic example to get you started:

from chatgpt_browser_api import BaseChatGPT

# Create an instance of LangchainLLM
llm = BaseChatGPT(chatgpt_web_api_url="http://localhost:3001")

answer = chatgpt("Write your prompt here")

print(answer)

To start the web server located at chatgpt_web_api_url, see ChatGPT-Web-API

Contributing

Contributions are welcome! If you have any ideas, bug reports, or feature requests, please open an issue or submit a pull request on GitHub.

License

This library is licensed under the MIT License. See the LICENSE file for more information.


Please note that you may need to replace certain sections, such as the license badge and the GitHub repository link, with the appropriate information for your project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain-chatgpt-browser-api-0.0.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page