返回提交历史
Modified
docs/client.md
+2
-2
XFEstudio/gpt4free
Updated(docs/client.md)
dd17d5ac
代码差异
1 个文件
+2
-2
@@ -171,17 +171,17 @@ response = client.chat.completions.create(
171
171
)
172
172
print(response.choices[0].message.content)
173
173
```
174
174
175
```
175
176
User: What are on this image?
176
177
```
177

178
178
179

179
180
```
180
181
Bot: There is a waterfall in the middle of a jungle. There is a rainbow over...
181
182
```
182
183
183
184
### Example: Using a Vision Model
184
185
185
The following code snippet demonstrates how to use a vision model to analyze an image and generate a description based on the content of the image. This example shows how to fetch an image, send it to the model, and then process the response.
186
186
187
187
```python