Skip to content

Commit eefe2be

Browse files
author
Keivan Vosoughi
committed
Test
1 parent d51775a commit eefe2be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/client/src/pages/DataGenerator/Configure.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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 (

0 commit comments

Comments
 (0)