summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2023-10-12 15:32:50 +0200
committerGitHub <noreply@github.com>2023-10-12 15:32:50 +0200
commit86248b44bcb4261c627335e24f5713e242793ece (patch)
tree59671d1777b76bade80b4a0c5ce8a42121878a9e /README.md
parent~ | Merge pull request #1053 from Lin-jun-xiang/fix_GptGo (diff)
parentchange "Models" to "Providers" (diff)
downloadgpt4free-86248b44bcb4261c627335e24f5713e242793ece.tar
gpt4free-86248b44bcb4261c627335e24f5713e242793ece.tar.gz
gpt4free-86248b44bcb4261c627335e24f5713e242793ece.tar.bz2
gpt4free-86248b44bcb4261c627335e24f5713e242793ece.tar.lz
gpt4free-86248b44bcb4261c627335e24f5713e242793ece.tar.xz
gpt4free-86248b44bcb4261c627335e24f5713e242793ece.tar.zst
gpt4free-86248b44bcb4261c627335e24f5713e242793ece.zip
Diffstat (limited to 'README.md')
-rw-r--r--README.md41
1 files changed, 31 insertions, 10 deletions
diff --git a/README.md b/README.md
index 90643b5a..59c743b5 100644
--- a/README.md
+++ b/README.md
@@ -7,18 +7,39 @@ By using this repository or any code related to it, you agree to the [legal noti
pip install -U g4f
```
+or if you just want to use the gui or interference api, install with [pipx](https://pypa.github.io/pipx/)
+
+```sh
+pipx install g4f
+```
+
## New features
- Telegram Channel: https://t.me/g4f_channel
- g4f GUI is back !!:
Install g4f with pip and then run:
-```py
+
+```sh
+g4f gui
+```
+
+or
+
+```sh
python -m g4f.gui.run
```
+
preview:
<img width="1470" alt="image" src="https://github.com/xtekky/gpt4free/assets/98614666/57ad818a-a0dd-4eae-83e1-3fff848ae040">
-- run interference from pypi package:
+- run interference api from pypi package:
+
+```sh
+g4f api
+```
+
+or
+
```py
python -m g4f.interference.run
```
@@ -320,26 +341,26 @@ print(f"Result:", response)
### interference openai-proxy api (use with openai python package)
-#### run interference from pypi package:
+#### run interference api from pypi package:
```py
-from g4f.interference import run_interference
+from g4f.api import run_api
-run_interference()
+run_api()
```
-#### run interference from repo:
+#### run interference api from repo:
If you want to use the embedding function, you need to get a huggingface token. You can get one at https://huggingface.co/settings/tokens make sure your role is set to write. If you have your token, just use it instead of the OpenAI api-key.
-get requirements:
+run server:
```sh
-pip install -r etc/interference/requirements.txt
+g4f api
```
-run server:
+or
```sh
-python3 -m etc/interference.app
+python -m g4f.api
```
```py