Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat attachment is expanded instead of being downloaded #2658

Open
1 task done
evgeny-danilov opened this issue Nov 22, 2024 · 0 comments
Open
1 task done

Chat attachment is expanded instead of being downloaded #2658

evgeny-danilov opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@evgeny-danilov
Copy link

evgeny-danilov commented Nov 22, 2024

EPAM AI DIAL chat version

0.17.0

How to reproduce

What custom bot (aidial_sdk) implements the feature of attachments choice.add_attachment(url=url, ...), and the user clicks in the middle of the attachment (not on the 'download' icon), the attachment expands instead of downloading.

Code:

with response.create_single_choice() as choice:
  choice.add_attachment(title="File", url=some_s3_url)

Example

Attachment:
image

expands when users clicks on the attachment title:
image

Actual result

  • ✅ When use clicks the 'download' icon of attachment, file downloading (which is correct)
  • 🛑 [BUG here] When use clicks in the middle of the attachment, it expands, not downloading

Expected result

When user click downloadable attachment in any place, the attachment downloading.

Confidential information

  • I confirm that do not share any confidential information
@evgeny-danilov evgeny-danilov added the bug Something isn't working label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant