summaryrefslogtreecommitdiffstats
path: root/docs/client.md
diff options
context:
space:
mode:
authorkqlio67 <kqlio67@users.noreply.github.com>2024-10-15 12:58:09 +0200
committerkqlio67 <kqlio67@users.noreply.github.com>2024-10-15 12:58:09 +0200
commit202b0730ffb0a47360b901f0dd007b13a2f59bb2 (patch)
tree6d9544562d4bc8950f68306e9bbb4b75cca3ab6e /docs/client.md
parentUpdated(docs/client.md) (diff)
downloadgpt4free-202b0730ffb0a47360b901f0dd007b13a2f59bb2.tar
gpt4free-202b0730ffb0a47360b901f0dd007b13a2f59bb2.tar.gz
gpt4free-202b0730ffb0a47360b901f0dd007b13a2f59bb2.tar.bz2
gpt4free-202b0730ffb0a47360b901f0dd007b13a2f59bb2.tar.lz
gpt4free-202b0730ffb0a47360b901f0dd007b13a2f59bb2.tar.xz
gpt4free-202b0730ffb0a47360b901f0dd007b13a2f59bb2.tar.zst
gpt4free-202b0730ffb0a47360b901f0dd007b13a2f59bb2.zip
Diffstat (limited to 'docs/client.md')
-rw-r--r--docs/client.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/client.md b/docs/client.md
index 5e6b79ba..e95c510d 100644
--- a/docs/client.md
+++ b/docs/client.md
@@ -61,8 +61,8 @@ You can use the `ChatCompletions` endpoint to generate text completions as follo
```python
from g4f.client import Client
-client = Client()
+client = Client()
response = client.chat.completions.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": "Say this is a test"}],
@@ -77,7 +77,6 @@ Also streaming are supported:
from g4f.client import Client
client = Client()
-
stream = client.chat.completions.create(
model="gpt-4",
messages=[{"role": "user", "content": "Say this is a test"}],