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]

Merge pull request #9258 from BerriAI/litellm_fix_models_view_edit

Ishaan Jaff12188f286c72
diff --cc ui/litellm-dashboard/src/components/model_info_view.tsx
index d8d1ded81bc,c0fb57ed13f..2d05e185c11
--- a/ui/litellm-dashboard/src/components/model_info_view.tsx
+++ b/ui/litellm-dashboard/src/components/model_info_view.tsx
@@@ -45,12 -44,12 +46,13 @@@ export default function ModelInfoView(
userRole,
editModel,
setEditModalVisible,
- setSelectedModel
+ setSelectedModel,
+ onModelUpdate
}: ModelInfoViewProps) {
const [form] = Form.useForm();
- const [localModelData, setLocalModelData] = useState(modelData);
+ const [localModelData, setLocalModelData] = useState<any>(null);
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
+ const [isCredentialModalOpen, setIsCredentialModalOpen] = useState(false);
const [isDirty, setIsDirty] = useState(false);
const [isSaving, setIsSaving] = useState(false);
const [isEditing, setIsEditing] = useState(false);