From 5612ee4c8d9ffbd0ddc958c1a16f588d9994b223 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Mon, 19 Feb 2024 19:34:28 +0100 Subject: Update readme / docs --- docs/requirements.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 docs/requirements.md (limited to 'docs/requirements.md') diff --git a/docs/requirements.md b/docs/requirements.md new file mode 100644 index 00000000..7715a403 --- /dev/null +++ b/docs/requirements.md @@ -0,0 +1,46 @@ +### 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 + +Install required packages for the OpenaiChat provider: +``` +pip install -U g4f[openai] +``` +Install required packages for the interference api: +``` +pip install -U g4f[api] +``` +Install required packages for the web interface: +``` +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](/) \ No newline at end of file -- cgit v1.2.3