mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
truncateUserAgent
This commit is contained in:
parent
363c30320f
commit
cd9c388a3f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue