10000 GitHub - zhk0603/gpt4free: The official gpt4free repository | various collection of powerful language models
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from xtekky/gpt4free

The official gpt4free repository | various collection of powerful language models

License

Notifications You must be signed in to change notification settings

zhk0603/gpt4free

 
 

Repository files navigation

image

By using this repository or any code related to it, you agree to the legal notice. The author is not responsible for any copies, forks, or reuploads made by other users. This is the author's only account and repository. To prevent impersonation or irresponsible actions, you may comply with the GNU GPL license this Repository uses.

This (quite censored) New Version of gpt4free, was just released, it may contain bugs, open an issue or contribute a PR when encountering one, some features were disabled. Docker is for now not available but I would be happy if someone contributes a PR. The g4f GUI will be uploaded soon enough.

Table of Contents:

Getting Started

Prerequisites:

  1. Download and install Python (Version 3.x is recommended).

Setting up the project:

  1. Clone the GitHub repository:
git clone https://github.com/xtekky/gpt4free.git
  1. Navigate to the project directory:
cd gpt4free
  1. (Recommended) Create a virtual environment to manage Python packages for your project:
python3 -m venv venv
  1. Activate the virtual environment:
    • On Windows:
    .\venv\Scripts\activate
    
    • On macOS and Linux:
    source venv/bin/activate
    
  2. Install the required Python packages from requirements.txt:
pip install -r requirements.txt
  1. Create a test.py file in the root folder and start using the repo, further Instructions are below
import g4f

...

Usage

The g4f Package