mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(ui): add ellipsis when truncating conversation title
This commit is contained in:
parent
71c4413a35
commit
006bb8103f
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ function generateTitle(firstUserMessage: string): string {
|
|||
if (trimmed.length <= TITLE_MAX_LENGTH) {
|
||||
return trimmed;
|
||||
}
|
||||
return trimmed.slice(0, TITLE_MAX_LENGTH);
|
||||
return trimmed.slice(0, TITLE_MAX_LENGTH) + "…";
|
||||
}
|
||||
|
||||
function loadFromStorage(): { conversations: Conversation[]; storageUnavailable: boolean } {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue