A Python library that allows you to use Langchain with the ChatGPT instance in your browser.
Project description
Langchain LLM
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for langchain-chatgpt-browser-api-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eb02b2de6707a67f02e3e86c0d0cc762569332d76fe64abce5658efe5df98eb |
|
MD5 | 7483c266a6154f1f404a96a917c0c55d |
|
BLAKE2b-256 | 6a18bf823abcd96b548163065e3e74ad1e20fcec40759a93668f18740ee4c9c7 |
Hashes for langchain_chatgpt_browser_api-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 617bdf8de45886e7dec08357525b00d842b1fcd000d5fc3240dbd3d299a73fd7 |
|
MD5 | 633f43b536b96e1888e4855a70f2bc6b |
|
BLAKE2b-256 | db7edd54d62ac193d4a93bbbd1492c244f001c3db005e894cc861175fb93b10b |