Share an open source project that uses chatgpt4 for free,How to use it for free with open source codechatgpt4t account
Project address:https://github.com/xtekky/gpt4freegithub.com/xtekky/gpt4…
Project introduction:Official gpt4free repository |A collection of powerful language models
This project was developed by computer science student Xtekky。Its core idea is to use the website integrated with the GPT model,Such as bing.com、liaobots.site、Poe.com etc.,Get their GPTf service by accessing their API or simulating a crawler,This is possible because the APIs of these websites do not have strong protection measures (thanks to them!)。Xtekky by writing scripts,Successfully extract information from these open APIs,and integrated it into his project.chatgpt4账号free
About this project,Xtekky explains:”actually,One can achieve the same thing by simply opening tabs from these websites in their browser。I personally open it in a browser like Phind、Multiple tabs for sites like You,Make a lot of requests。My project only provides a more convenient way to implement。”
Installation environment
Python installation,You can refer to the introduction in the following article,Very complete (including Linux、Windows、Installation method under Mac environment)
Here I will share with you an installation script,Suitable for Mac/Linux system。
Write the following codeinstall_python.sh
#! /bin/bash
# 基础环境安装
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py38_22.11.1-1-Linux-x86_64.sh
chmod +x Miniconda3-py38_22.11.1-1-Linux-x86_64.sh
./Miniconda3-py38_22.11.1-1-Linux-x86_64.sh -b && /root/miniconda3/bin/conda init bash && /root/miniconda3/bin/conda clean -ya
bash
# 安装 gpt4free 环境
git clone https://github.com/xtekky/gpt4free
cd gpt4free
conda create -n gpt4free python=3.9
conda activate gpt4free
pip install -r requirements.txt
Then create a new Terminal,Enter the following commands to quickly create:
bash
chmod +x install_python.sh
./install_python.sh
Run the project
The environment is created,The subsequent operation is very simple. Just enter the following commands in sequence.,logic:Enter the project directory、activate environment、Import network environment variables (set to your own)、Run program。
cd gpt4free
conda activate gpt4free
export G4F_PROXY=http://127.0.0.1:7890
python g4f/gui/run.py
The service runs by default in 8080 port,If you are running locally,direct access:localhost:8080
can be accessed,If you are deploying on the server,You need to set up a security group or firewall on the server first,Open port 8080,then pass:serverip:8080
access。
experience
gpt4free:
Official chatGPT4:
Overall OK,Speed is not directlychatGPT official websiteFast access,But it's okay,The quality of the reply is also good,After all, free is acceptable,You can also use GPT4 and other models,Supported model list:
※※Get a GPT account for free※※
If you want to use a low-cost and stable personal independent account,You can enter the store on this site to purchase,The lowest price account on the entire network,Full after-sales guarantee,Customer service follow-up
Store link:https://shop.youngchatgpt.com/
Customer Service WeChat:youngchatgpt
Official website of this site:https://aiprois.com/
No comments yet