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]

feat(ui): alert when adding model without STORE_MODEL_IN_DB (#8591)

Aditya Kumar Kasaudhan0839880f4ad7
diff --git a/ui/litellm-dashboard/src/components/networking.tsx b/ui/litellm-dashboard/src/components/networking.tsx
index e00bb56c422..d7623e0e33b 100644
--- a/ui/litellm-dashboard/src/components/networking.tsx
+++ b/ui/litellm-dashboard/src/components/networking.tsx
@@ -111,9 +111,12 @@ export const modelCreateCall = async (
});
if (!response.ok) {
- const errorData = await response.text();
- console.error("Error response from the server:", errorData);
- throw new Error("Network response was not ok");
+ const errorData = await response.json();
+ const errorMsg =
+ errorData.error?.message?.error ||
+ "Network response was not ok";
+ message.error(errorMsg);
+ throw new Error(errorMsg);
}
const data = await response.json();