Skip to content

Commit dfd5ea6

Browse files
fix: don't send screenshots to Puter models with supportsScreenshot=false
1 parent 988f1c1 commit dfd5ea6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2333,7 +2333,9 @@
23332333

23342334
const userContent = [];
23352335
if (payload.userText) userContent.push({ type: 'text', text: payload.userText });
2336-
(payload.images || []).forEach(uri => userContent.push({ type: 'image_url', image_url: { url: uri } }));
2336+
if (payload.supportsScreenshot !== false) {
2337+
(payload.images || []).forEach(uri => userContent.push({ type: 'image_url', image_url: { url: uri } }));
2338+
}
23372339
messages.push({ role: 'user', content: userContent });
23382340

23392341
const requestBody = {
@@ -5544,3 +5546,4 @@
55445546

55455547

55465548

5549+

0 commit comments

Comments
 (0)