Skip to content

Commit 327599b

Browse files
committed
docs: use smaller image URL in vision example
Fixes #2776 The original image URL (1599px) was too large and caused a 400 error when the API tried to download it. Changed to a smaller 640px version which works correctly.
1 parent f94256d commit 327599b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ With an image URL:
7777

7878
```python
7979
prompt = "What is in this image?"
80-
img_url = "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/2023_06_08_Raccoon1.jpg/1599px-2023_06_08_Raccoon1.jpg"
80+
img_url = "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/2023_06_08_Raccoon1.jpg/640px-2023_06_08_Raccoon1.jpg"
8181

8282
response = client.responses.create(
8383
model="gpt-4o-mini",

0 commit comments

Comments
 (0)