Skip to content

Commit

Permalink
response schema documentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emcf committed Apr 25, 2024
1 parent 7e2929d commit 1ce6e63
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,20 @@ The input source is either a file path, a URL, or a directory. The pipe will ext
```json
[
{
"type": "text",
"content": "Extracted text here..."
},
{
"type": "image_url",
"image_url": {
"url": "data:image/jpeg;base64,..."}
},
"role": "user",
"content": [
{
"type": "text",
"text": "What’s in this image?"
},
{
"type": "image_url",
"image_url": {
"url": f"data:image/jpeg;base64,{base64_image}"
}
}
]
}
]
```
If you want to feed these messages directly into the model, it is important to be mindful of the token limit.
Expand Down

0 comments on commit 1ce6e63

Please sign in to comment.