summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 346d0904..14da463f 100644
--- a/README.md
+++ b/README.md
@@ -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)
```