diff --git a/web/src/pages/Playground/index.jsx b/web/src/pages/Playground/index.jsx index 465012e..6811b21 100644 --- a/web/src/pages/Playground/index.jsx +++ b/web/src/pages/Playground/index.jsx @@ -591,7 +591,10 @@ const Playground = () => { const modelParam = searchParams.get('model'); const modelTypeParam = searchParams.get('model_type'); if (modelTypeParam) { - handleInputChange('model_type', modelTypeParam); + const v = Number(modelTypeParam); + if (!Number.isNaN(v)) { + handleInputChange('model_type', v); + } } if (modelParam) { handleInputChange('model', modelParam);