1
0
Fork 0
Mirror against potential takedown.
Go to file
Daniele Polizzi 96eab8ed1d
Update __init__.py
I changed the import statement from request import Session to import requests because in the original the Session class is the only class imported from the request library. In this case, it is more efficient to import the whole library with import requests and use requests.Session() instead of Session() and added various code comments

Instead of having a separate dictionary, I created a headers dictionary and used the update() method to update the session header.

The create() function returns the results of a request made to a website as a JSON dictionary using the .json() method. However, you don't need to import the json library explicitly because the json() function is a method of the Response object returned by session.post(). In other words, the .json() method does the json decoding for us, so we don't need to use the json module's json()
2023-04-26 15:25:09 +02:00
.github Create FUNDING.yml 2023-04-22 21:25:34 +01:00
Docker Create Dockerfile 2023-04-25 08:51:49 +07:00
gui gui folder 2023-04-25 10:19:42 +01:00
phind phind needs cf_clearance again 2023-04-25 09:11:31 +01:00
quora poe.com update 2023-04-25 11:26:56 +01:00
testing discontinue ora.sh api 2023-04-25 18:40:17 +01:00
unfinished Update __init__.py 2023-04-26 15:25:09 +02:00
you move documenation to individual folder 2023-04-22 13:54:01 +01:00
.gitignore updated quora module, added selenium to get cookie 2023-04-24 03:08:47 +05:30
LICENSE Create LICENSE 2023-04-17 00:00:18 +01:00
README.md Merge branch 'main' of https://github.com/xtekky/gpt4free 2023-04-25 18:40:19 +01:00
requirements.txt Merge branch 'main' into fix/poe_account_creation 2023-04-25 00:06:24 +05:30
v2.py discontinue ora.sh api 2023-04-25 18:40:17 +01:00
you_test.py discontinue ora.sh api 2023-04-25 18:40:17 +01:00

GPT4free - use ChatGPT, for free!!

image

Have you ever come across some amazing projects that you couldn't use just because you didn't have an OpenAI API key?

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 ; ).

By the way, thank you so much for 5k stars and all the support!!

Table of Contents

Todo

  • 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

Current Sites

Website Model(s)
poe.com GPT-4/3.5
writesonic.com GPT-3.5 / Internet
t3nsor.com GPT-3.5
you.com GPT-3.5 / Internet / good search
phind.com GPT-4 / Internet / good search
sqlchat.ai GPT-3.5
chat.openai.com/chat GPT-3.5
bard.google.com custom / search
bing.com/chat GPT-4/3.5

Best sites

gpt-4

  • /phind
  • pro: only stable gpt-4 with streaming ( no limit )
  • contra: weird backend prompting
  • why not ora anymore ? gpt-4 requires login + limited

gpt-3.5

  • looking for a stable api at the moment

Install

download or clone this GitHub repo
install requirements with:

pip3 install -r requirements.txt

To start gpt4free GUI

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

Docker

Build

docker build -t gpt4free:latest -f Docker/Dockerfile .

Run

docker run -p 8501:8501 gpt4free:latest

ChatGPT clone

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

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.

This program is licensed under the GNU GPL v3

Most code, with the exception of quora/api.py (by ading2210), has been written by me, xtekky.

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/>.

replit

You can fork this repl to host your own ChatGPT-clone WebUI. https://replit.com/@gpt4free/gpt4free-webui