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]

ui: fix render error on test key page

Ishaan Jaff4a0d711bed76
diff --git a/ui/litellm-dashboard/src/components/chat_ui.tsx b/ui/litellm-dashboard/src/components/chat_ui.tsx
index 1fa28af2af9..78d5a7e6336 100644
--- a/ui/litellm-dashboard/src/components/chat_ui.tsx
+++ b/ui/litellm-dashboard/src/components/chat_ui.tsx
@@ -374,7 +374,7 @@ const ChatUI: React.FC<ChatUIProps> = ({
console.log("Request was cancelled");
} else {
console.error("Error fetching response", error);
- updateTextUI("assistant", "Error fetching response");
+ updateTextUI("assistant", "Error fetching response:" + error);
}
} finally {
setIsLoading(false);
diff --git a/ui/litellm-dashboard/src/components/chat_ui/llm_calls/chat_completion.tsx b/ui/litellm-dashboard/src/components/chat_ui/llm_calls/chat_completion.tsx
index 8488794b597..f7810c07ce3 100644
--- a/ui/litellm-dashboard/src/components/chat_ui/llm_calls/chat_completion.tsx
+++ b/ui/litellm-dashboard/src/components/chat_ui/llm_calls/chat_completion.tsx
@@ -122,8 +122,6 @@ export async function makeOpenAIChatCompletionRequest(
} catch (error) {
if (signal?.aborted) {
console.log("Chat completion request was cancelled");
- } else {
- message.error(`Error occurred while generating model response. Please try again. Error: ${error}`, 20);
}
throw error; // Re-throw to allow the caller to handle the error
}