From f58de45bd1aee7e5c3c126a51fff83a928421834 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 21 Nov 2025 15:02:47 -0800 Subject: [PATCH] Fix: Set 1:1 aspect ratio for IMG Output --- src/streaming.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streaming.js b/src/streaming.js index 5f1e76c..e187d39 100644 --- a/src/streaming.js +++ b/src/streaming.js @@ -10,7 +10,7 @@ export const buildBody=()=>{ if(SUNE.json_output){let s;try{s=JSON.parse(SUNE.json_schema||'null')}catch{s=null}if(s&&typeof s==='object'&&Object.keys(s).length>0){b.response_format={type:'json_schema',json_schema:s}}else{b.response_format={type:'json_object'}}} b.reasoning={...(SUNE.reasoning_effort&&SUNE.reasoning_effort!=='default'?{effort:SUNE.reasoning_effort}:{}),exclude:!SUNE.include_thoughts}; if(SUNE.verbosity)b.verbosity=SUNE.verbosity; - if(SUNE.img_output&&!USER.donor)b.modalities=['text','image']; + if(SUNE.img_output&&!USER.donor){b.modalities=['text','image'];b.image_config={aspect_ratio:'1:1'}} return b }