Skip to content

Commit

Permalink
fix: image detail
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon authored and pengx17 committed Apr 11, 2024
1 parent 019d28e commit 48043d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class OpenAIProvider
.filter(url => SIMPLE_IMAGE_URL_REGEX.test(url))
.map(url => ({
type: 'image_url',
image_url: { url, detail: 'low' },
image_url: { url, detail: 'high' },
})),
];
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,11 @@ export function setupAIProvider() {
prompt,
docId: options.docId,
workspaceId: options.workspaceId,
content: options.content,
params: options.params,
attachments: options.attachments,
content:
options.content ||
'Here are the latest wireframes. Could you make a new website based on these wireframes and notes and send back just the html file?',
});
});
}

0 comments on commit 48043d9

Please sign in to comment.