返回提交历史
Modified
docs/client.md
+1
-2
XFEstudio/gpt4free
Updated(docs/client.md)
202b0730
代码差异
1 个文件
+1
-2
@@ -61,8 +61,8 @@ You can use the `ChatCompletions` endpoint to generate text completions as follo
61
61
62
62
```python
63
63
from g4f.client import Client
64
client = Client()
65
64
65
client = Client()
66
66
response = client.chat.completions.create(
67
67
model="gpt-3.5-turbo",
68
68
messages=[{"role": "user", "content": "Say this is a test"}],
@@ -77,7 +77,6 @@ Also streaming are supported:
77
77
from g4f.client import Client
78
78
79
79
client = Client()
80
81
80
stream = client.chat.completions.create(
82
81
model="gpt-4",
83
82
messages=[{"role": "user", "content": "Say this is a test"}],