Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(user_edit_view.tsx): use shared component to prevent accidental setting of edit user budget

Krrish Dholakia84f934bf36f7
diff --git a/ui/litellm-dashboard/src/components/user_edit_view.tsx b/ui/litellm-dashboard/src/components/user_edit_view.tsx
index bfe00290eba..4c99e29bbe8 100644
--- a/ui/litellm-dashboard/src/components/user_edit_view.tsx
+++ b/ui/litellm-dashboard/src/components/user_edit_view.tsx
@@ -1,5 +1,6 @@
import React from "react";
import { Form, InputNumber, Select, Tooltip } from "antd";
+import NumericalInput from "./shared/numerical_input";
import { TextInput, Textarea, SelectItem } from "@tremor/react";
import { Button } from "@tremor/react";
import { getModelDisplayName } from "./key_team_helpers/fetch_available_models_team_key";
@@ -150,7 +151,7 @@ export function UserEditView({
label="Max Budget (USD)"
name="max_budget"
>
- <InputNumber
+ <NumericalInput
step={0.01}
precision={2}
style={{ width: "100%" }}