mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-22 15:05:57 +03:00
Update README.md
This commit is contained in:
parent
ddc65fc918
commit
bfce3af7a5
@ -425,10 +425,11 @@ client = Client(
|
||||
api_key="...",
|
||||
provider=GeminiPro
|
||||
)
|
||||
image = requests.get("https://example.jpg", stream=True).raw
|
||||
response = client.chat.completions.create(
|
||||
model="gemini-pro-vision",
|
||||
messages=[{"role": "user", "content": "What are on this image?"}],
|
||||
image=open("docs/waterfall.jpeg", "rb")
|
||||
image=image
|
||||
)
|
||||
print(response.choices[0].message.content)
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user