gpt4free/README.md

152 lines
9.1 KiB
Markdown
Raw Normal View History

2023-04-24 03:25:28 +03:00
# GPT4free - use ChatGPT, for free!!
2023-04-22 20:57:53 +03:00
2023-04-27 00:06:29 +03:00
##### You may join our discord server for updates and support ; )
2023-04-27 00:07:00 +03:00
- https://discord.gg/gpt4free
2023-04-27 00:06:29 +03:00
2023-04-22 20:57:53 +03:00
<img width="1383" alt="image" src="https://user-images.githubusercontent.com/98614666/233799515-1a7cb6a3-b17f-42c4-956d-8d2a0664466f.png">
2023-04-01 15:53:30 +03:00
Have you ever come across some amazing projects that you couldn't use **just because you didn't have an OpenAI API key?**
2023-04-01 15:55:00 +03:00
**We've got you covered!** This repository offers **reverse-engineered** third-party APIs for `GPT-4/3.5`, sourced from various websites. You can simply **download** this repository, and use the available modules, which are designed to be used **just like OpenAI's official package**. **Unleash ChatGPT's potential for your projects, now!** You are welcome ; ).
2023-04-22 21:44:49 +03:00
By the way, thank you so much for [![Stars](https://img.shields.io/github/stars/xtekky/gpt4free?style=social)](https://github.com/xtekky/gpt4free/stargazers) and all the support!!
2023-04-01 15:55:00 +03:00
## Announcement
Dear Gpt4free Community,
2023-04-26 08:21:34 +03:00
I want to thank you for your interest in and support of this project, which I only intended to be for entertainment and educational purposes; I had no idea it would end up being so popular.
I'm aware of the concerns about the project's legality and its impact on smaller sites hosting APIs. I take these concerns seriously and plan to address them.
Here's what I'm doing to fix these issues:
1. Removing APIs from smaller sites: To reduce the impact on smaller sites, I have removed their APIs from the repository. Please shoot me a dm if you are an owner of a site and want it removed.
2. Commitment to ethical use: I want to emphasize my commitment to promoting ethical use of language models. I don't support any illegal or unethical behavior, and I expect users to follow the same principles.
Thank you for your support and understanding. I appreciate your continued interest in gpt4free and am committed to addressing your concerns.
Sincerely,
xtekky
2023-04-10 01:22:16 +03:00
2023-04-26 01:49:08 +03:00
## Legal Notice <a name="legal-notice"></a>
This repository uses third-party APIs and AI models and is *not* associated with or endorsed by the API providers or the original developers of the models. This project is intended **for educational purposes only**.
Please note the following:
1. **Disclaimer**: The APIs, services, and trademarks mentioned in this repository belong to their respective owners. This project is *not* claiming any right over them.
2. **Responsibility**: The author of this repository is *not* responsible for any consequences arising from the use or misuse of this repository or the content provided by the third-party APIs and any damage or losses caused by users' actions.
3. **Educational Purposes Only**: This repository and its content are provided strictly for educational purposes. By using the information and code provided, users acknowledge that they are using the APIs and models at their own risk and agree to comply with any applicable laws and regulations.
2023-04-02 00:04:33 +03:00
## Table of Contents
2023-04-25 20:59:40 +03:00
| Section | Description | Link | Status |
| ------- | ----------- | ---- | ------ |
| **To do list** | List of tasks to be done | [![Link to Section](https://img.shields.io/badge/Link-Go%20to%20Section-blue)](#todo) | - |
2023-04-26 02:05:32 +03:00
| **Current Sites** | Current websites or platforms that can be used as APIs | [![Link to Section](https://img.shields.io/badge/Link-Go%20to%20Section-blue)](#current-sites) | - |
2023-04-25 20:59:40 +03:00
| **Best Sites for gpt4** | Recommended websites or platforms for gpt4 | [![Link to Section](https://img.shields.io/badge/Link-Go%20to%20Section-blue)](#best-sites) | - |
| **Streamlit GPT4Free GUI** | Web-based graphical user interface for interacting with gpt4free | [![Link to Section](https://img.shields.io/badge/Link-Go%20to%20Section-blue)](#streamlit-gpt4free-gui) | - |
| **Docker** | Instructions on how to run gpt4free in a Docker container | [![Link to Section](https://img.shields.io/badge/Link-Go%20to%20Section-blue)](#docker-instructions) | - |
| **ChatGPT clone** | A ChatGPT clone with new features and scalability | [![Link to Website](https://img.shields.io/badge/Link-Visit%20Site-blue)](https://chat.chatbot.sex/chat) | - |
| **How to install** | Instructions on how to install gpt4free | [![Link to Section](https://img.shields.io/badge/Link-Go%20to%20Section-blue)](#install) | - |
| **Legal Notice** | Legal notice or disclaimer | [![Link to Section](https://img.shields.io/badge/Link-Go%20to%20Section-blue)](#legal-notice) | - |
| **Copyright** | Copyright information | [![Link to Section](https://img.shields.io/badge/Link-Go%20to%20Section-blue)](#copyright) | - |
| **Usage Examples** | | | |
| `quora (poe)` | Example usage for quora | [![Link to File](https://img.shields.io/badge/Link-Go%20to%20File-blue)](./quora/README.md) | ![Active](https://img.shields.io/badge/Active-brightgreen) |
| `phind` | Example usage for phind | [![Link to File](https://img.shields.io/badge/Link-Go%20to%20File-blue)](./phind/README.md) | ![Inactive](https://img.shields.io/badge/Active-brightgreen) |
2023-04-25 20:59:40 +03:00
| `you` | Example usage for you | [![Link to File](https://img.shields.io/badge/Link-Go%20to%20File-blue)](./you/README.md) | ![Active](https://img.shields.io/badge/Active-brightgreen)
| **Try it Out** | | | |
| Google Colab Jupyter Notebook | Example usage for gpt4free | [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/DanielShemesh/gpt4free-colab/blob/main/gpt4free.ipynb) | - |
| replit Example (feel free to fork this repl) | Example usage for gpt4free | [![](https://img.shields.io/badge/Open%20in-Replit-1A1E27?logo=replit)](https://replit.com/@gpt4free/gpt4free-webui) | - |
2023-04-25 04:53:08 +03:00
2023-04-23 21:08:50 +03:00
## Todo <a name="todo"></a>
- [ ] Add a GUI for the repo
- [ ] Make a general package named `openai_rev`, instead of different folders
- [ ] Live api status to know which are down and which can be used
- [ ] Integrate more API's in `./unfinished` as well as other ones in the lists
- [ ] Make an API to use as proxy for other projects
- [ ] Make a pypi package
2023-04-01 15:53:30 +03:00
2023-04-02 00:04:33 +03:00
## Current Sites <a name="current-sites"></a>
2023-04-01 15:53:30 +03:00
2023-04-22 21:50:35 +03:00
| Website | Model(s) |
| ---------------------------------------------------- | ------------------------------- |
| [poe.com](https://poe.com) | GPT-4/3.5 |
| [writesonic.com](https://writesonic.com) | GPT-3.5 / Internet |
| [t3nsor.com](https://t3nsor.com) | GPT-3.5 |
| [you.com](https://you.com) | GPT-3.5 / Internet / good search|
| [phind.com](https://phind.com) | GPT-4 / Internet / good search |
| [sqlchat.ai](https://sqlchat.ai) | GPT-3.5 |
| [chat.openai.com/chat](https://chat.openai.com/chat) | GPT-3.5 |
| [bard.google.com](https://bard.google.com) | custom / search |
| [bing.com/chat](https://bing.com/chat) | GPT-4/3.5 |
| [chat.forefront.ai/](https://chat.forefront.ai/) | GPT-4/3.5 |
2023-04-22 21:50:35 +03:00
## Best sites <a name="best-sites"></a>
2023-03-29 22:00:39 +03:00
2023-04-22 16:26:57 +03:00
#### gpt-4
2023-04-25 20:10:10 +03:00
- [`/phind`](./phind/README.md)
2023-04-24 21:53:41 +03:00
- pro: only stable gpt-4 with streaming ( no limit )
- contra: weird backend prompting
- why not `ora` anymore ? gpt-4 requires login + limited
2023-04-22 16:26:57 +03:00
#### gpt-3.5
2023-04-25 20:40:17 +03:00
- looking for a stable api at the moment
2023-04-02 00:04:33 +03:00
2023-04-23 12:46:36 +03:00
## Install <a name="install"></a>
2023-04-25 12:16:05 +03:00
download or clone this GitHub repo
2023-04-22 20:59:37 +03:00
install requirements with:
2023-04-22 15:54:01 +03:00
```sh
pip3 install -r requirements.txt
```
2023-04-25 12:16:05 +03:00
2023-04-25 20:59:40 +03:00
## To start gpt4free GUI <a name="streamlit-gpt4free-gui"></a>
2023-04-25 12:16:05 +03:00
move `streamlit_app.py` from `./gui` to the base folder
then run:
`streamlit run streamlit_app.py` or `python3 -m streamlit run streamlit_app.py`
2023-04-17 02:14:41 +03:00
2023-04-25 20:59:40 +03:00
## Docker <a name="docker-instructions"></a>
2023-04-25 04:54:19 +03:00
Build
```
docker build -t gpt4free:latest -f Docker/Dockerfile .
```
Run
```
docker run -p 8501:8501 gpt4free:latest
```
2023-04-24 03:25:28 +03:00
## ChatGPT clone
2023-04-23 21:08:50 +03:00
> currently implementing new features and trying to scale it, please be patient it may be unstable
> https://chat.chatbot.sex/chat
> This site was developed by me and includes **gpt-4/3.5**, **internet access** and **gpt-jailbreak's** like DAN
> run locally here: https://github.com/xtekky/chatgpt-clone
2023-04-17 02:04:20 +03:00
## Copyright:
This program is licensed under the [GNU GPL v3](https://www.gnu.org/licenses/gpl-3.0.txt)
Most code, with the exception of `quora/api.py` (by [ading2210](https://github.com/ading2210)), has been written by me, [xtekky](https://github.com/xtekky).
2023-04-23 12:46:36 +03:00
### Copyright Notice: <a name="copyright"></a>
2023-04-17 02:04:20 +03:00
```
xtekky/openai-gpt4: multiple reverse engineered language-model api's to decentralise the ai industry.
Copyright (C) 2023 xtekky
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
```