@@ -164,6 +164,7 @@ Return ONLY the JSON array.`,
164164 type : 'dropdown' ,
165165 placeholder : 'Select reasoning effort...' ,
166166 options : [
167+ { label : 'auto' , id : 'auto' } ,
167168 { label : 'low' , id : 'low' } ,
168169 { label : 'medium' , id : 'medium' } ,
169170 { label : 'high' , id : 'high' } ,
@@ -173,9 +174,12 @@ Return ONLY the JSON array.`,
173174 const { useSubBlockStore } = await import ( '@/stores/workflows/subblock/store' )
174175 const { useWorkflowRegistry } = await import ( '@/stores/workflows/registry/store' )
175176
177+ const autoOption = { label : 'auto' , id : 'auto' }
178+
176179 const activeWorkflowId = useWorkflowRegistry . getState ( ) . activeWorkflowId
177180 if ( ! activeWorkflowId ) {
178181 return [
182+ autoOption ,
179183 { label : 'low' , id : 'low' } ,
180184 { label : 'medium' , id : 'medium' } ,
181185 { label : 'high' , id : 'high' } ,
@@ -188,6 +192,7 @@ Return ONLY the JSON array.`,
188192
189193 if ( ! modelValue ) {
190194 return [
195+ autoOption ,
191196 { label : 'low' , id : 'low' } ,
192197 { label : 'medium' , id : 'medium' } ,
193198 { label : 'high' , id : 'high' } ,
@@ -197,15 +202,15 @@ Return ONLY the JSON array.`,
197202 const validOptions = getReasoningEffortValuesForModel ( modelValue )
198203 if ( ! validOptions ) {
199204 return [
205+ autoOption ,
200206 { label : 'low' , id : 'low' } ,
201207 { label : 'medium' , id : 'medium' } ,
202208 { label : 'high' , id : 'high' } ,
203209 ]
204210 }
205211
206- return validOptions . map ( ( opt ) => ( { label : opt , id : opt } ) )
212+ return [ autoOption , ... validOptions . map ( ( opt ) => ( { label : opt , id : opt } ) ) ]
207213 } ,
208- value : ( ) => 'medium' ,
209214 condition : {
210215 field : 'model' ,
211216 value : MODELS_WITH_REASONING_EFFORT ,
@@ -217,6 +222,7 @@ Return ONLY the JSON array.`,
217222 type : 'dropdown' ,
218223 placeholder : 'Select verbosity...' ,
219224 options : [
225+ { label : 'auto' , id : 'auto' } ,
220226 { label : 'low' , id : 'low' } ,
221227 { label : 'medium' , id : 'medium' } ,
222228 { label : 'high' , id : 'high' } ,
@@ -226,9 +232,12 @@ Return ONLY the JSON array.`,
226232 const { useSubBlockStore } = await import ( '@/stores/workflows/subblock/store' )
227233 const { useWorkflowRegistry } = await import ( '@/stores/workflows/registry/store' )
228234
235+ const autoOption = { label : 'auto' , id : 'auto' }
236+
229237 const activeWorkflowId = useWorkflowRegistry . getState ( ) . activeWorkflowId
230238 if ( ! activeWorkflowId ) {
231239 return [
240+ autoOption ,
232241 { label : 'low' , id : 'low' } ,
233242 { label : 'medium' , id : 'medium' } ,
234243 { label : 'high' , id : 'high' } ,
@@ -241,6 +250,7 @@ Return ONLY the JSON array.`,
241250
242251 if ( ! modelValue ) {
243252 return [
253+ autoOption ,
244254 { label : 'low' , id : 'low' } ,
245255 { label : 'medium' , id : 'medium' } ,
246256 { label : 'high' , id : 'high' } ,
@@ -250,15 +260,15 @@ Return ONLY the JSON array.`,
250260 const validOptions = getVerbosityValuesForModel ( modelValue )
251261 if ( ! validOptions ) {
252262 return [
263+ autoOption ,
253264 { label : 'low' , id : 'low' } ,
254265 { label : 'medium' , id : 'medium' } ,
255266 { label : 'high' , id : 'high' } ,
256267 ]
257268 }
258269
259- return validOptions . map ( ( opt ) => ( { label : opt , id : opt } ) )
270+ return [ autoOption , ... validOptions . map ( ( opt ) => ( { label : opt , id : opt } ) ) ]
260271 } ,
261- value : ( ) => 'medium' ,
262272 condition : {
263273 field : 'model' ,
264274 value : MODELS_WITH_VERBOSITY ,
@@ -270,6 +280,7 @@ Return ONLY the JSON array.`,
270280 type : 'dropdown' ,
271281 placeholder : 'Select thinking level...' ,
272282 options : [
283+ { label : 'none' , id : 'none' } ,
273284 { label : 'minimal' , id : 'minimal' } ,
274285 { label : 'low' , id : 'low' } ,
275286 { label : 'medium' , id : 'medium' } ,
@@ -281,36 +292,28 @@ Return ONLY the JSON array.`,
281292 const { useSubBlockStore } = await import ( '@/stores/workflows/subblock/store' )
282293 const { useWorkflowRegistry } = await import ( '@/stores/workflows/registry/store' )
283294
295+ const noneOption = { label : 'none' , id : 'none' }
296+
284297 const activeWorkflowId = useWorkflowRegistry . getState ( ) . activeWorkflowId
285298 if ( ! activeWorkflowId ) {
286- return [
287- { label : 'low' , id : 'low' } ,
288- { label : 'high' , id : 'high' } ,
289- ]
299+ return [ noneOption , { label : 'low' , id : 'low' } , { label : 'high' , id : 'high' } ]
290300 }
291301
292302 const workflowValues = useSubBlockStore . getState ( ) . workflowValues [ activeWorkflowId ]
293303 const blockValues = workflowValues ?. [ blockId ]
294304 const modelValue = blockValues ?. model as string
295305
296306 if ( ! modelValue ) {
297- return [
298- { label : 'low' , id : 'low' } ,
299- { label : 'high' , id : 'high' } ,
300- ]
307+ return [ noneOption , { label : 'low' , id : 'low' } , { label : 'high' , id : 'high' } ]
301308 }
302309
303310 const validOptions = getThinkingLevelsForModel ( modelValue )
304311 if ( ! validOptions ) {
305- return [
306- { label : 'low' , id : 'low' } ,
307- { label : 'high' , id : 'high' } ,
308- ]
312+ return [ noneOption , { label : 'low' , id : 'low' } , { label : 'high' , id : 'high' } ]
309313 }
310314
311- return validOptions . map ( ( opt ) => ( { label : opt , id : opt } ) )
315+ return [ noneOption , ... validOptions . map ( ( opt ) => ( { label : opt , id : opt } ) ) ]
312316 } ,
313- value : ( ) => 'high' ,
314317 condition : {
315318 field : 'model' ,
316319 value : MODELS_WITH_THINKING ,
0 commit comments