2024-02-19 21:34:28 +03:00
|
|
|
### G4F - Additional Requirements
|
|
|
|
|
|
|
|
#### Introduction
|
|
|
|
|
|
|
|
You can install requirements partially or completely. So G4F can be used as you wish. You have the following options for this:
|
|
|
|
|
|
|
|
#### Options
|
|
|
|
|
2024-02-21 19:02:54 +03:00
|
|
|
Install g4f with all possible dependencies:
|
|
|
|
```
|
|
|
|
pip install -U g4f[all]
|
|
|
|
```
|
|
|
|
Or install only g4f and the required packages for the OpenaiChat provider:
|
2024-02-19 21:34:28 +03:00
|
|
|
```
|
|
|
|
pip install -U g4f[openai]
|
|
|
|
```
|
2024-02-21 19:02:54 +03:00
|
|
|
Install required packages for the Interference API:
|
2024-02-19 21:34:28 +03:00
|
|
|
```
|
|
|
|
pip install -U g4f[api]
|
|
|
|
```
|
2024-02-21 19:02:54 +03:00
|
|
|
Install required packages for the Web UI:
|
2024-02-19 21:34:28 +03:00
|
|
|
```
|
|
|
|
pip install -U g4f[gui]
|
|
|
|
```
|
|
|
|
Install required packages for uploading / generating images:
|
|
|
|
```
|
|
|
|
pip install -U g4f[image]
|
|
|
|
```
|
|
|
|
Install required packages for using the webdriver:
|
|
|
|
```
|
|
|
|
pip install -U g4f[webdriver]
|
|
|
|
```
|
|
|
|
Install required package for proxy support with aiohttp:
|
|
|
|
```
|
|
|
|
pip install -U aiohttp_socks
|
|
|
|
```
|
|
|
|
Install required package for loading cookies from browser:
|
|
|
|
```
|
|
|
|
pip install browser_cookie3
|
|
|
|
```
|
|
|
|
Install curl_cffi for better protection from being blocked:
|
|
|
|
```
|
|
|
|
pip install curl_cffi
|
|
|
|
```
|
|
|
|
Install all packages and uninstall this package for disabling the webdriver:
|
|
|
|
```
|
|
|
|
pip uninstall undetected-chromedriver
|
|
|
|
```
|
|
|
|
|
|
|
|
[Return to Home](/)
|