File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/client/src/pages/DataGenerator Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -178,12 +178,13 @@ const Configure: FunctionComponent = () => {
178178 console . log ( 'value' , value ) ;
179179 if ( ModelProviderType . OPENAI === value ) {
180180 const _models = filter ( customModels , ( model : CustomModel ) => model . provider_type === ModelProviderType . OPENAI ) ;
181- setModels ( _models ) ;
181+ setModels ( _models . map ( ( _model : CustomModel ) => _model . model_id ) ) ;
182182 } else if ( ModelProviderType . GEMINIE === value ) {
183183 const _models = filter ( customModels , ( model : CustomModel ) => model . provider_type === ModelProviderType . GEMINIE ) ;
184- setModels ( _models ) ;
184+ setModels ( _models . map ( ( _model : CustomModel ) => _model . model_id ) ) ;
185185 }
186186 }
187+ console . log ( 'models' , models ) ;
187188
188189
189190 return (
You can’t perform that action at this time.
0 commit comments