Update README.md

pull/1911/head
H Lohaus 1 month ago committed by GitHub
parent ddc65fc918
commit bfce3af7a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save