summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-23 11:33:38 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-23 11:33:38 +0100
commit51264fe20cda57eff47ac9a386edb3563eac4568 (patch)
tree29233c3c384ebc8cc493e68842aa0dcff499cd49 /README.md
parentAdd missing file (diff)
downloadgpt4free-51264fe20cda57eff47ac9a386edb3563eac4568.tar
gpt4free-51264fe20cda57eff47ac9a386edb3563eac4568.tar.gz
gpt4free-51264fe20cda57eff47ac9a386edb3563eac4568.tar.bz2
gpt4free-51264fe20cda57eff47ac9a386edb3563eac4568.tar.lz
gpt4free-51264fe20cda57eff47ac9a386edb3563eac4568.tar.xz
gpt4free-51264fe20cda57eff47ac9a386edb3563eac4568.tar.zst
gpt4free-51264fe20cda57eff47ac9a386edb3563eac4568.zip
Diffstat (limited to '')
-rw-r--r--README.md19
1 files changed, 9 insertions, 10 deletions
diff --git a/README.md b/README.md
index 892dba11..b8afa691 100644
--- a/README.md
+++ b/README.md
@@ -103,7 +103,7 @@ or set the api base in your client to: [http://localhost:1337/v1](http://localho
1. [Download and install Python](https://www.python.org/downloads/) (Version 3.10+ is recommended).
2. [Install Google Chrome](https://www.google.com/chrome/) for providers with webdriver
-##### Install using pypi:
+##### Install using PyPI package:
```
pip install -U g4f[all]
@@ -113,12 +113,12 @@ Or use partial requirements.
See: [/docs/requirements](/docs/requirements.md)
-##### Install from source:
+##### Install from source using git:
See: [/docs/git](/docs/git.md)
-##### Install using Docker
+##### Install using Docker for Developers:
See: [/docs/docker](/docs/docker.md)
@@ -126,7 +126,6 @@ See: [/docs/git](/docs/git.md)
## 💡 Usage
#### Text Generation
-**with Python**
```python
from g4f.client import Client
@@ -134,14 +133,13 @@ from g4f.client import Client
client = Client()
response = client.chat.completions.create(
model="gpt-3.5-turbo",
- messages=[{"role": "user", "content": "Say this is a test"}],
+ messages=[{"role": "user", "content": "Hello"}],
...
)
print(response.choices[0].message.content)
```
#### Image Generation
-**with Python**
```python
from g4f.client import Client
@@ -154,14 +152,15 @@ response = client.images.generate(
)
image_url = response.data[0].url
```
-Result:
+
+**Result:**
[![Image with cat](/docs/cat.jpeg)](/docs/client.md)
-**See also for Python:**
+**See also:**
-- [Documentation for new Client](/docs/client.md)
-- [Documentation for leagcy API](/docs/leagcy.md)
+- Documentation for the new Client: [/docs/client](/docs/client.md)
+- Documentation for the leagcy API: [docs/leagcy](/docs/leagcy.md)
#### Web UI