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]

truncateUserAgent

Ishaan Jaffcd9c388a3f75
diff --git a/ui/litellm-dashboard/src/components/user_agent_activity.tsx b/ui/litellm-dashboard/src/components/user_agent_activity.tsx
index ebc069783ee..6662c8aef1e 100644
--- a/ui/litellm-dashboard/src/components/user_agent_activity.tsx
+++ b/ui/litellm-dashboard/src/components/user_agent_activity.tsx
@@ -243,8 +243,8 @@ const UserAgentActivity: React.FC<UserAgentActivityProps> = ({
// Helper function to truncate user agent name with tooltip
const truncateUserAgent = (userAgent: string): string => {
- if (userAgent.length > 10) {
- return userAgent.substring(0, 10) + "...";
+ if (userAgent.length > 15) {
+ return userAgent.substring(0, 15) + "...";
}
return userAgent;
};