Skip to content

Instantly share code, notes, and snippets.

@ahmednuaman
Created April 22, 2024 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmednuaman/4f2070773de3fad5efda44a2ea61e6c9 to your computer and use it in GitHub Desktop.
Save ahmednuaman/4f2070773de3fad5efda44a2ea61e6c9 to your computer and use it in GitHub Desktop.
{
content: [
{
source: {
data: imageData,
media_type: 'image/jpeg',
type: 'base64'
},
type: 'image'
},
{
text: `Return your response as the following JSON:
{
"description": "Please describe the objects in this image and if there's any damage"
}`,
type: 'text'
}
],
role: 'user'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment