AI Studio: fix saving null model id when selecting from Others list
| @@ -4628,6 +4628,11 @@ async function onModelChange() { | |||
| 4628 | } | 4628 | } |
| 4629 | 4629 | ||
| 4630 | if ($(this).is('#model_google_select')) { | 4630 | if ($(this).is('#model_google_select')) { |
| 4631 | if (!value) { | ||
| 4632 | console.debug('Null Google model selected. Ignoring.'); | ||
| 4633 | return; | ||
| 4634 | } | ||
| 4635 | |||
| 4631 | console.log('Google model changed to', value); | 4636 | console.log('Google model changed to', value); |
| 4632 | oai_settings.google_model = value; | 4637 | oai_settings.google_model = value; |
| 4633 | } | 4638 | } |