Skip to content

Commit

Permalink
add image to payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuyz0112 committed Dec 21, 2023
1 parent 4045b1a commit 95bd9b8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion prompts/ui-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,21 @@ async function main() {
},
{
role: "user",
content: prompt,
content: [
{
type: "text",
text: prompt,
},
...images.map(
(image) =>
({
type: "image_url",
image_url: {
url: image,
},
} as const)
),
],
},
],
"gpt-4-vision-preview"
Expand Down

0 comments on commit 95bd9b8

Please sign in to comment.