aws-samples / amazon-q-slack-gateway

MIT No Attribution
79 stars 28 forks source link

remove base64 encoding logic for attachment data.. SDK expects an une… #19

Closed rstrahan closed 10 months ago

rstrahan commented 10 months ago

remove base64 encoding logic for attachment data.. SDK expects an unencoded buffer

Issue #, if available: n/a

Description of changes:

Resolves discrepancies observed with attachment processing when comparing slack bot with web console experience. The SDK expects an unencoded buffer object for attachment.data. Previous we were sending an encoded string value, causing the content was encoded twice, which was confusing the LLM.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.