Skip to content

Commit e14885f

Browse files
authored
Merge pull request #42 from UiPath/sarath/personas
fix: truncate persona option text to 75 chars for Slack views.open limit
2 parents c7108dc + 0806884 commit e14885f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/danswer/danswerbot/slack/handlers/handle_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def handle_message(
370370
{
371371
"text": {
372372
"type": "plain_text",
373-
"text": f"{persona.name}{persona.description}",
373+
"text": f"{persona.name}{persona.description}"[:75],
374374
"emoji": True,
375375
},
376376
"value": str(persona.id),

0 commit comments

Comments
 (0)