diff --git a/ui/litellm-dashboard/src/components/model_dashboard.tsx b/ui/litellm-dashboard/src/components/model_dashboard.tsx index b8605d8a9..54c488b02 100644 --- a/ui/litellm-dashboard/src/components/model_dashboard.tsx +++ b/ui/litellm-dashboard/src/components/model_dashboard.tsx @@ -194,14 +194,14 @@ const ModelDashboard: React.FC = ({ const EditModelModal: React.FC = ({ visible, onCancel, model, onSubmit }) => { const [form] = Form.useForm(); - let litellm_params_to_edit = {} + let litellm_params_to_edit: Record = {} let model_name = ""; let model_id = ""; if (model) { litellm_params_to_edit = model.litellm_params model_name = model.model_name; let model_info = model.model_info; - if (model_info) { + if (model_info ) { model_id = model_info.id; console.log(`model_id: ${model_id}`) litellm_params_to_edit.model_id = model_id; @@ -315,7 +315,7 @@ const handleEditSubmit = async (formValues: Record) => { return; } - let newLiteLLMParams = {} + let newLiteLLMParams: Record = {} let model_info_model_id = null; for (const [key, value] of Object.entries(formValues)) {