mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-29 05:13:35 -08:00
Updated(docs/client.md)
This commit is contained in:
parent
e43f95d4df
commit
dd17d5aca8
1 changed files with 2 additions and 2 deletions
|
|
@ -171,17 +171,17 @@ response = client.chat.completions.create(
|
||||||
)
|
)
|
||||||
print(response.choices[0].message.content)
|
print(response.choices[0].message.content)
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
User: What are on this image?
|
User: What are on this image?
|
||||||
```
|
```
|
||||||

|
|
||||||
|
|
||||||
|

|
||||||
```
|
```
|
||||||
Bot: There is a waterfall in the middle of a jungle. There is a rainbow over...
|
Bot: There is a waterfall in the middle of a jungle. There is a rainbow over...
|
||||||
```
|
```
|
||||||
|
|
||||||
### Example: Using a Vision Model
|
### Example: Using a Vision Model
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue