diff --git a/ui/litellm-dashboard/src/components/model_dashboard.tsx b/ui/litellm-dashboard/src/components/model_dashboard.tsx index de92805b0..7e97eb377 100644 --- a/ui/litellm-dashboard/src/components/model_dashboard.tsx +++ b/ui/litellm-dashboard/src/components/model_dashboard.tsx @@ -457,19 +457,19 @@ const ModelDashboard: React.FC = ({ - + - + = ({ let newLiteLLMParams: Record = {}; let model_info_model_id = null; + if (formValues.input_cost_per_million_tokens) { + formValues.input_cost_per_token = formValues.input_cost_per_million_tokens / 1000000; + delete formValues.input_cost_per_million_tokens; + } + if (formValues.output_cost_per_million_tokens) { + formValues.output_cost_per_token = formValues.output_cost_per_million_tokens / 1000000; + delete formValues.output_cost_per_million_tokens; + } + for (const [key, value] of Object.entries(formValues)) { if (key !== "model_id") { newLiteLLMParams[key] = value;