@@ -91,7 +91,9 @@ export default function RunModelButton({
9191        Array . isArray ( row . supports )  && 
9292        row . supports . some ( 
9393          // Some models list as text-to-speech, others as text-to-audio 
94-           ( support : string )  =>  ( support . toLowerCase ( )  ===  'text-to-speech'  ||  pipelineTag  ===  'text-to-audio' ) , 
94+           ( support : string )  => 
95+             support . toLowerCase ( )  ===  'text-to-speech'  || 
96+             pipelineTag  ===  'text-to-audio' , 
9597        ) ; 
9698
9799      // For text-to-speech models: must also have text-to-speech support 
@@ -136,7 +138,7 @@ export default function RunModelButton({
136138        'model_architectures:'  + 
137139          experimentInfo ?. config ?. foundation_model_architecture ,  //filter 
138140      ) , 
139-       { } 
141+       { } , 
140142    ) ; 
141143    const  inferenceEnginesJSON  =  await  inferenceEngines . json ( ) ; 
142144    const  experimentId  =  experimentInfo ?. id ; 
@@ -153,7 +155,7 @@ export default function RunModelButton({
153155          inferenceEngineFriendlyName : inferenceEngineFriendlyName  ||  null , 
154156        } ) , 
155157      ) , 
156-       { } 
158+       { } , 
157159    ) ; 
158160
159161    return  { 
@@ -194,17 +196,19 @@ export default function RunModelButton({
194196
195197        // Update the experiment config with the first supported engine 
196198        if  ( experimentInfo ?. id )  { 
197-           chatAPI . authenticatedFetch ( 
198-             chatAPI . Endpoints . Experiment . UpdateConfig ( 
199-               experimentInfo . id , 
200-               'inferenceParams' , 
201-               JSON . stringify ( newInferenceSettings ) , 
202-             ) , 
203-           ) . catch ( ( )  =>  { 
204-             console . error ( 
205-               'Failed to update inferenceParams in experiment config' , 
206-             ) ; 
207-           } ) ; 
199+           chatAPI 
200+             . authenticatedFetch ( 
201+               chatAPI . Endpoints . Experiment . UpdateConfig ( 
202+                 experimentInfo . id , 
203+                 'inferenceParams' , 
204+                 JSON . stringify ( newInferenceSettings ) , 
205+               ) , 
206+             ) 
207+             . catch ( ( )  =>  { 
208+               console . error ( 
209+                 'Failed to update inferenceParams in experiment config' , 
210+               ) ; 
211+             } ) ; 
208212        } 
209213      }  else  { 
210214        // This preserves the older logic where we try to get the default inference engine for a blank experiment 
0 commit comments